forked from bartvdbraak/blender
Fix for off-by-one error switching nurbs direction
This commit is contained in:
parent
767ac65e75
commit
572a199a24
@ -3567,6 +3567,8 @@ void BKE_nurb_direction_switch(Nurb *nu)
|
||||
a = KNOTSU(nu);
|
||||
fp1 = nu->knotsu;
|
||||
fp2 = tempf = MEM_mallocN(sizeof(float) * a, "switchdirect");
|
||||
a--;
|
||||
fp2[a] = fp1[a];
|
||||
while (a--) {
|
||||
fp2[0] = fabs(fp1[1] - fp1[0]);
|
||||
fp1++;
|
||||
|
Loading…
Reference in New Issue
Block a user