Fix T38985: Setting endpoint_u property while creating spline in Python gives strange behavior

This commit is contained in:
Sergey Sharybin 2014-03-07 14:05:10 +06:00
parent c31c8fa14e
commit b839fb9bb7
Notes: blender-bot 2023-02-14 20:09:48 +01:00
Referenced by issue blender/blender-addons#38985, Setting endpoint_u property while creating spline in Python gives strange behavior
1 changed files with 2 additions and 2 deletions

View File

@ -3802,7 +3802,7 @@ bool BKE_nurb_order_clamp_u(struct Nurb *nu)
{
bool changed = false;
if (nu->pntsu < nu->orderu) {
nu->orderu = nu->pntsu;
nu->orderu = max_ii(2, nu->pntsu);
changed = true;
}
if (((nu->flagu & CU_NURB_CYCLIC) == 0) && (nu->flagu & CU_NURB_BEZIER)) {
@ -3816,7 +3816,7 @@ bool BKE_nurb_order_clamp_v(struct Nurb *nu)
{
bool changed = false;
if (nu->pntsv < nu->orderv) {
nu->orderv = nu->pntsv;
nu->orderv = max_ii(2, nu->pntsv);
changed = true;
}
if (((nu->flagv & CU_NURB_CYCLIC) == 0) && (nu->flagv & CU_NURB_BEZIER)) {