forked from bartvdbraak/blender
[#8596] curve editing is unstable
Though I could not reproduce the crash, the example file would always reference an invalid pointer.
This commit is contained in:
parent
201a234c44
commit
bedbbbbb42
@ -1976,6 +1976,9 @@ float calc_curve_subdiv_radius(Curve *cu, Nurb *nu, int cursubdiv)
|
||||
if ( ((nu->type & 7)==CU_NURBS) && (nu->flagu & CU_CYCLIC)) {
|
||||
if (bp >= bplast) bp = bpfirst;
|
||||
else bp++;
|
||||
} else if ( bp >= bplast ) {
|
||||
/* this can happen in rare cases, refer to bug [#8596] */
|
||||
bp = bplast;
|
||||
}
|
||||
|
||||
rad = prevrad = bp->radius;
|
||||
|
Loading…
Reference in New Issue
Block a user