Fix: Assert in subdivide curves node after span slicing change
a5e7657cee
missed this call where clamped slicing is necessary.
The subdivision of a segment purposefully modifies the handle types of
the other side of the following control point, but that didn't work for
the final cyclic segment.
This commit is contained in:
parent
4aac5b92c1
commit
3cebc58936
|
@ -1 +1 @@
|
|||
Subproject commit 0b0052bd53ad8249ed07dfb87705c338af698bde
|
||||
Subproject commit fdfd24de034d4bba4fb67731d0aae81dc4940239
|
|
@ -172,7 +172,7 @@ static void subdivide_bezier_segment(const float3 &position_prev,
|
|||
auto fill_segment_handle_types = [&](const HandleType type) {
|
||||
/* Also change the left handle of the control point following the segment's points. And don't
|
||||
* change the left handle of the first point, since that is part of the previous segment. */
|
||||
dst_types_l.slice(segment_points.shift(1)).fill(type);
|
||||
dst_types_l.slice_safe(segment_points.shift(1)).fill(type);
|
||||
dst_types_r.slice(segment_points).fill(type);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue