Fix #28695: path/beziercirlce defined surface dissapears when deleting subdv of path until toggling end point option

Clamp order when deleting points from nurb curve.
Also fixed incorrect free caused by non-initialized knots array
when deleting segment from non-cyclic nurb.
This commit is contained in:
Sergey Sharybin 2011-09-22 12:07:02 +00:00
parent aa809e6f78
commit 780be0d918

@ -5777,6 +5777,7 @@ static int delete_exec(bContext *C, wmOperator *op)
clamp_nurb_order_u(nu);
}*/
}
clamp_nurb_order_u(nu);
nurbs_knot_calc_u(nu);
}
nu= next;
@ -5925,7 +5926,14 @@ static int delete_exec(bContext *C, wmOperator *op)
MEM_freeN(nu1->bp);
nu1->bp= bp;
nu1->pntsu= a;
nu1->knotsu= NULL;
nu->pntsu= cut+1;
clamp_nurb_order_u(nu);
nurbs_knot_calc_u(nu);
clamp_nurb_order_u(nu1);
nurbs_knot_calc_u(nu1);
}
}
}