mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Fix T95137: Spline calc_length not working with just 1 NURB point
The NURB case did not properly handle a curve with only 1 point. Ref D13904
This commit is contained in:
parent
df5da16aa1
commit
3cfccf1199
1 changed files with 1 additions and 1 deletions
|
|
@ -915,7 +915,7 @@ float BKE_nurb_calc_length(const Nurb *nu, int resolution)
|
|||
pntsit = points + 3;
|
||||
}
|
||||
|
||||
while (--b) {
|
||||
while (--b > 0) {
|
||||
length += len_v3v3(prevpntsit, pntsit);
|
||||
prevpntsit = pntsit;
|
||||
pntsit += 3;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue