diff options
author | Hans Goudey <h.goudey@me.com> | 2021-06-28 22:28:52 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-06-28 22:28:52 +0300 |
commit | a0c45a2d5416f780451a23830087a6e712d26ef1 (patch) | |
tree | 60933bec1cba120dbe5cdf8c5b266c46409f4b85 /source/blender/blenkernel/intern/geometry_set_instances.cc | |
parent | 790cb28766813c94733637e46a6527eaf9a04a6b (diff) |
Cleanup: Add function to create a CurveEval from a nurbs list
Sometimes the current spline list isn't part of the original curve, like
when using the deformed control points, etc. This will be helpful in
the curve modifier stack.
Diffstat (limited to 'source/blender/blenkernel/intern/geometry_set_instances.cc')
-rw-r--r-- | source/blender/blenkernel/intern/geometry_set_instances.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/geometry_set_instances.cc b/source/blender/blenkernel/intern/geometry_set_instances.cc index 3c50b966f04..01b51d552a9 100644 --- a/source/blender/blenkernel/intern/geometry_set_instances.cc +++ b/source/blender/blenkernel/intern/geometry_set_instances.cc @@ -56,7 +56,7 @@ static void add_curve_data_as_geometry_component(const Object &object, GeometryS { BLI_assert(object.type == OB_CURVE); if (object.data != nullptr) { - std::unique_ptr<CurveEval> curve = curve_eval_from_dna_curve(*(Curve *)object.data); + std::unique_ptr<CurveEval> curve = curve_eval_from_dna_curve(*(const Curve *)object.data); CurveComponent &curve_component = geometry_set.get_component_for_write<CurveComponent>(); curve_component.replace(curve.release(), GeometryOwnershipType::Owned); } |