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
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2022-02-23 01:37:58 +0300
committerHans Goudey <h.goudey@me.com>2022-02-23 01:37:58 +0300
commit5b4732f81ca8a159e937336fba7c8eb3220216de (patch)
tree4c0ab34fda202c209cbc99934a5355feec26af49 /source/blender/nodes/geometry/nodes/node_geo_curve_primitive_bezier_segment.cc
parent0b9cc6725cca193ec20868caf266ea35c173b956 (diff)
Cleanup: Use new enum for CurveEval handle types
This will make the transition to the new curves data structure a bit simple, since the handle types can be copied directly between the two. The change to CurveEval is simple because it is runtime-only.
Diffstat (limited to 'source/blender/nodes/geometry/nodes/node_geo_curve_primitive_bezier_segment.cc')
-rw-r--r--source/blender/nodes/geometry/nodes/node_geo_curve_primitive_bezier_segment.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/nodes/geometry/nodes/node_geo_curve_primitive_bezier_segment.cc b/source/blender/nodes/geometry/nodes/node_geo_curve_primitive_bezier_segment.cc
index c6b9018f0db..69f43c81ea3 100644
--- a/source/blender/nodes/geometry/nodes/node_geo_curve_primitive_bezier_segment.cc
+++ b/source/blender/nodes/geometry/nodes/node_geo_curve_primitive_bezier_segment.cc
@@ -69,8 +69,8 @@ static std::unique_ptr<CurveEval> create_bezier_segment_curve(
spline->resize(2);
MutableSpan<float3> positions = spline->positions();
- spline->handle_types_left().fill(BezierSpline::HandleType::Align);
- spline->handle_types_right().fill(BezierSpline::HandleType::Align);
+ spline->handle_types_left().fill(BEZIER_HANDLE_ALIGN);
+ spline->handle_types_right().fill(BEZIER_HANDLE_ALIGN);
spline->radii().fill(1.0f);
spline->tilts().fill(0.0f);