Fix curve hide keeping spline active

This commit is contained in:
Campbell Barton 2016-04-04 17:55:28 +10:00
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;
}
}
}