Blender Git Commit Log
Git Commits -> Revision 231d66d
Revision 231d66d by Hans Goudey (master) October 22, 2021, 22:32 (GMT) |
Fix: Support swapped inputs properly in trim curve node Previously, when the start input was greater than the end input, the spline was resized to a single point. That is correct, but the single point wasn't placed properly along the spline. Now, it is placed according to the "Start" value, as if the trim started, but couldn't continue because the "End" value was smaller. This behavior is handled with a separate code path to keep each simpler and avoid special cases. Any cleanup to reduce duplication should focus on making each code path shorter separately rather than merging them. Also included are some changes to `lookup_control_point_position` to support cyclic splines, though this single-point method is still disabled on cyclic splines for consistency. |
Commit Details:
Full Hash: 231d66d8ba355cb7fa5332e9ea7d8921bbde82fe
Parent Commit: 62d64be
Lines Changed: +175, -44
1 Modified Path:
/source/blender/nodes/geometry/nodes/node_geo_curve_trim.cc (+175, -44) (Diff)