From e5b51cb511e8ea408ec14017f9b13821d4299726 Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Wed, 26 May 2021 21:12:38 -0400 Subject: [PATCH] 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. --- source/blender/nodes/geometry/nodes/node_geo_curve_resample.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/blender/nodes/geometry/nodes/node_geo_curve_resample.cc b/source/blender/nodes/geometry/nodes/node_geo_curve_resample.cc index 1c42b9341a0..684f7d6c702 100644 --- a/source/blender/nodes/geometry/nodes/node_geo_curve_resample.cc +++ b/source/blender/nodes/geometry/nodes/node_geo_curve_resample.cc @@ -182,6 +182,8 @@ static std::unique_ptr resample_curve(const CurveEval &input_curve, } } + output_curve->attributes.reallocate(output_curve->splines().size()); + return output_curve; }