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:
parent
2c607ec2f6
commit
e5b51cb511
Notes:
blender-bot
2023-02-14 05:59:31 +01:00
Referenced by issue #88603, Crash with resample curve node
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue