Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2022-03-01 01:27:38 +0300
committerHans Goudey <h.goudey@me.com>2022-03-01 01:27:38 +0300
commit9ebb65323e57eda953e8a6bd03775318ab7ccb05 (patch)
treeeeec76d4cab6a216dd1ecfe64f9823463d53ed8b /source
parent6594e802ab94ff1124d9157deb0ca760981e3f34 (diff)
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.
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenkernel/intern/curve_eval.cc2
1 files changed, 1 insertions, 1 deletions
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<CurveEval> 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));
}