[Bf-blender-cvs] [457e1f9d1f2] geometry-nodes-curve-support: Geometry Nodes Curves: Cleanup

Hans Goudey noreply at git.blender.org
Mon Apr 5 20:15:16 CEST 2021


Commit: 457e1f9d1f256a9fcde29ea63bc3d39198409c73
Author: Hans Goudey
Date:   Mon Apr 5 13:14:19 2021 -0500
Branches: geometry-nodes-curve-support
https://developer.blender.org/rB457e1f9d1f256a9fcde29ea63bc3d39198409c73

Geometry Nodes Curves: Cleanup

===================================================================

M	source/blender/nodes/geometry/nodes/node_geo_transform.cc

===================================================================

diff --git a/source/blender/nodes/geometry/nodes/node_geo_transform.cc b/source/blender/nodes/geometry/nodes/node_geo_transform.cc
index 5eee0f7d034..09047ae67db 100644
--- a/source/blender/nodes/geometry/nodes/node_geo_transform.cc
+++ b/source/blender/nodes/geometry/nodes/node_geo_transform.cc
@@ -164,9 +164,9 @@ static void transform_curve(DCurve &curve,
       if (spline->type == Spline::Type::Bezier) {
         BezierSpline &bezier_spline = static_cast<BezierSpline &>(*spline);
         for (BezierPoint &point : bezier_spline.control_points) {
-          point.handle_position_a = point.handle_position_a += translation;
-          point.position = point.position += translation;
-          point.handle_position_b = point.handle_position_b += translation;
+          point.handle_position_a += translation;
+          point.position += translation;
+          point.handle_position_b += translation;
         }
       }
       spline->mark_cache_invalid();



More information about the Bf-blender-cvs mailing list