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:
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);
|
||||||
}*/
|
}*/
|
||||||
}
|
}
|
||||||
|
clamp_nurb_order_u(nu);
|
||||||
nurbs_knot_calc_u(nu);
|
nurbs_knot_calc_u(nu);
|
||||||
}
|
}
|
||||||
nu= next;
|
nu= next;
|
||||||
@ -5925,7 +5926,14 @@ static int delete_exec(bContext *C, wmOperator *op)
|
|||||||
MEM_freeN(nu1->bp);
|
MEM_freeN(nu1->bp);
|
||||||
nu1->bp= bp;
|
nu1->bp= bp;
|
||||||
nu1->pntsu= a;
|
nu1->pntsu= a;
|
||||||
|
nu1->knotsu= NULL;
|
||||||
nu->pntsu= cut+1;
|
nu->pntsu= cut+1;
|
||||||
|
|
||||||
|
clamp_nurb_order_u(nu);
|
||||||
|
nurbs_knot_calc_u(nu);
|
||||||
|
|
||||||
|
clamp_nurb_order_u(nu1);
|
||||||
|
nurbs_knot_calc_u(nu1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user