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:
Hans Goudey 2021-05-26 21:12:38 -04:00
parent 2c607ec2f6
commit e5b51cb511
Notes: blender-bot 2023-02-14 05:59:31 +01:00
Referenced by issue #88603, Crash with resample curve node
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}