bugfix where separating the armature would also separate the active-unselected bone...
authorCampbell Barton <ideasman42@gmail.com>
Wed, 20 Apr 2011 03:05:19 +0000 (03:05 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 20 Apr 2011 03:05:19 +0000 (03:05 +0000)
source/blender/editors/armature/editarmature.c

index b81b6a79c32c561c7b9041edc0879067bdb6f000..adfc9ee8113c5a01e1755af2994c6c591c7b6cd7 100644 (file)
@@ -416,7 +416,9 @@ void ED_armature_from_edit(Object *obedit)
                newBone->flag= eBone->flag;
                
                if (eBone == arm->act_edbone) {
                newBone->flag= eBone->flag;
                
                if (eBone == arm->act_edbone) {
-                       newBone->flag |= BONE_SELECTED; /* important, editbones can be active with only 1 point selected */
+                       /* don't change active selection, this messes up separate which uses
+                        * editmode toggle and can separate active bone which is de-selected originally */
+                       /* newBone->flag |= BONE_SELECTED; */ /* important, editbones can be active with only 1 point selected */
                        arm->act_edbone= NULL;
                        arm->act_bone= newBone;
                }
                        arm->act_edbone= NULL;
                        arm->act_bone= newBone;
                }