Fix curve hide keeping spline active
This commit is contained in:
parent
c868945a43
commit
097b895c2c
@ -4256,6 +4256,7 @@ void BKE_curve_nurb_active_set(Curve *cu, const Nurb *nu)
|
||||
cu->actnu = CU_ACT_NONE;
|
||||
}
|
||||
else {
|
||||
BLI_assert(!nu->hide);
|
||||
ListBase *nurbs = BKE_curve_editNurbs_get(cu);
|
||||
cu->actnu = BLI_findindex(nurbs, nu);
|
||||
}
|
||||
@ -4359,6 +4360,10 @@ void BKE_curve_nurb_vert_active_validate(Curve *cu)
|
||||
cu->actvert = CU_ACT_NONE;
|
||||
}
|
||||
}
|
||||
|
||||
if (nu->hide) {
|
||||
cu->actnu = CU_ACT_NONE;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user