From 097b895c2cccf5890e4ae97bcddf6d33530ef84b Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 4 Apr 2016 17:55:28 +1000 Subject: [PATCH] Fix curve hide keeping spline active --- source/blender/blenkernel/intern/curve.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/blender/blenkernel/intern/curve.c b/source/blender/blenkernel/intern/curve.c index 3329d3a25ee..4c099987404 100644 --- a/source/blender/blenkernel/intern/curve.c +++ b/source/blender/blenkernel/intern/curve.c @@ -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; + } } }