Fix #120559: GPv3: Rendering issue if single point curve is set to cyclic #120565

Merged
Falk David merged 1 commits from filedescriptor/blender:fix-120559 into main 2024-04-12 13:20:05 +02:00

1 Commits

Author SHA1 Message Date
Falk David 0a7f3de148 Fix #120559: GPv3: Rendering issue if single point curve is set to cyclic
Caused by ca0b02aa96
The `points.size() > 1` was added because we can't access
`lengths[points.size() - 1]` if the curve has a single point.
The fix just makes sure we default to a `u` value of `0.0f`
for single point cyclic curves.
2024-04-12 12:42:34 +02:00