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-03-09 00:45:17 +0300
committerHans Goudey <h.goudey@me.com>2022-03-09 00:45:37 +0300
commit521d4190a09b1117f4f729991a0c636be4c2b8f3 (patch)
tree9560484235783218e589c54a480550218da11943 /source/blender/nodes
parentb8960267dd51f9108b3b49e9b762e6b4d35ae1dc (diff)
Fix T96146: Subdivide curve node uninitialized dangling handles
Handles of non-cyclic bezier curves were not initialized. Now properly copy the dangling handle positions and types from the source curve.
Diffstat (limited to 'source/blender/nodes')
-rw-r--r--source/blender/nodes/geometry/nodes/node_geo_curve_subdivide.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/nodes/geometry/nodes/node_geo_curve_subdivide.cc b/source/blender/nodes/geometry/nodes/node_geo_curve_subdivide.cc
index 6456af5f295..371556c04f1 100644
--- a/source/blender/nodes/geometry/nodes/node_geo_curve_subdivide.cc
+++ b/source/blender/nodes/geometry/nodes/node_geo_curve_subdivide.cc
@@ -206,6 +206,10 @@ static void subdivide_bezier_spline(const BezierSpline &src,
}
else {
dst_positions.last() = src_positions.last();
+ dst_type_left.first() = src.handle_types_left().first();
+ dst_type_right.last() = src.handle_types_right().last();
+ dst_handles_left.first() = src_handles_left.first();
+ dst_handles_right.last() = src_handles_right.last();
}
}