Fix T88603: Crash with spline attributes after curve resample
The output curve's spline attribute domain custom data needs to be reallocated with the correct length after adding the splines.
This commit is contained in:
@@ -182,6 +182,8 @@ static std::unique_ptr<CurveEval> resample_curve(const CurveEval &input_curve,
|
||||
}
|
||||
}
|
||||
|
||||
output_curve->attributes.reallocate(output_curve->splines().size());
|
||||
|
||||
return output_curve;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user