diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-04-04 10:55:28 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-04-05 11:36:14 +0300 |
commit | e63a8e7ded3953038654387b9a88a1552d6217f6 (patch) | |
tree | ec538b18bb905c6c012bb25de879a5014694496f /source | |
parent | f2ae9c6f8535a0f5f6519d28636d32d816b96bb5 (diff) |
Fix curve hide keeping spline active
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/curve.c | 5 |
1 files changed, 5 insertions, 0 deletions
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; + } } } |