Fix T96164: Crash with curve domain attributes
When converting from the new type to the old, the curve domain attributes weren't properly resized, so their data was not properly allocated.
This commit is contained in:
parent
1763ffa0be
commit
295d5c6ef5
@ -436,6 +436,8 @@ std::unique_ptr<CurveEval> curves_to_curve_eval(const Curves &curves)
|
||||
curve_eval->add_spline(std::move(spline));
|
||||
}
|
||||
|
||||
curve_eval->attributes.reallocate(curve_eval->splines().size());
|
||||
|
||||
CurveComponentLegacy dst_component;
|
||||
dst_component.replace(curve_eval.get(), GeometryOwnershipType::Editable);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user