Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2016-04-04 10:55:28 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2016-04-05 11:36:14 +0300
commite63a8e7ded3953038654387b9a88a1552d6217f6 (patch)
treeec538b18bb905c6c012bb25de879a5014694496f
parentf2ae9c6f8535a0f5f6519d28636d32d816b96bb5 (diff)
Fix curve hide keeping spline active
-rw-r--r--source/blender/blenkernel/intern/curve.c5
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;
+ }
}
}