Commit: e5b51cb511e8ea408ec14017f9b13821d4299726 Author: Hans Goudey Date: Wed May 26 21:12:38 2021 -0400 Branches: master https://developer.blender.org/rBe5b51cb511e8ea408ec14017f9b13821d4299726
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. =================================================================== M source/blender/nodes/geometry/nodes/node_geo_curve_resample.cc =================================================================== 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<CurveEval> resample_curve(const CurveEval &input_curve, } } + output_curve->attributes.reallocate(output_curve->splines().size()); + return output_curve; } _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org https://lists.blender.org/mailman/listinfo/bf-blender-cvs