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:
Hans Goudey 2022-03-04 11:11:56 -05:00
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);