Commit: e63a8e7ded3953038654387b9a88a1552d6217f6
Author: Campbell Barton
Date:   Mon Apr 4 17:55:28 2016 +1000
Branches: blender-v2.77-release
https://developer.blender.org/rBe63a8e7ded3953038654387b9a88a1552d6217f6

Fix curve hide keeping spline active

===================================================================

M       source/blender/blenkernel/intern/curve.c

===================================================================

diff --git a/source/blender/blenkernel/intern/curve.c 
b/source/blender/blenkernel/intern/curve.c
index 3329d3a..4c09998 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;
+               }
        }
 }

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to