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:
2021-05-26 21:12:38 -04:00
parent 2c607ec2f6
commit e5b51cb511

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