From 9ebb65323e57eda953e8a6bd03775318ab7ccb05 Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Mon, 28 Feb 2022 17:27:38 -0500 Subject: Fix: Use correct default in Curves to CurveEval conversion Currently the code expects the radius attribuet to always exist on the input Curves. This won't be true in the future though, so the correct default value of one should be used when creating the data on CurveEval, where the data is not optional. --- source/blender/blenkernel/intern/curve_eval.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source') diff --git a/source/blender/blenkernel/intern/curve_eval.cc b/source/blender/blenkernel/intern/curve_eval.cc index 78dafe34b4f..d6525a11cff 100644 --- a/source/blender/blenkernel/intern/curve_eval.cc +++ b/source/blender/blenkernel/intern/curve_eval.cc @@ -432,7 +432,7 @@ std::unique_ptr curves_to_curve_eval(const Curves &curves) } spline->positions().fill(float3(0)); spline->tilts().fill(0.0f); - spline->radii().fill(0.0f); + spline->radii().fill(1.0f); curve_eval->add_spline(std::move(spline)); } -- cgit v1.2.3