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:
authorTon Roosendaal <ton@blender.org>2005-11-05 19:32:13 +0300
committerTon Roosendaal <ton@blender.org>2005-11-05 19:32:13 +0300
commit11e60da19e953321adee12cabd7159cb3854baa7 (patch)
treea2a258d098c4c7b9c0790f62339431bd1e8deb38 /source/blender/src/editarmature.c
parentf4d0767b36f2385ad7c3d3eb28b90763d77ffaa9 (diff)
Fix #3343
Right after leaving Armature editmode, and entering posemode, the active bone was not selected (when only the head or tip was selected). This caused a confusing display of an active but not selected Bone... and not proper behaviour of UI (buttons) and inserting keys. Fix #3348 Mirror Modifier, button "Merge Limit" didn't react on left/right click.
Diffstat (limited to 'source/blender/src/editarmature.c')
-rw-r--r--source/blender/src/editarmature.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/src/editarmature.c b/source/blender/src/editarmature.c
index 354f45c058d..c533f9e64bd 100644
--- a/source/blender/src/editarmature.c
+++ b/source/blender/src/editarmature.c
@@ -249,6 +249,7 @@ static void editbones_to_armature (ListBase *list, Object *ob)
memcpy (newBone->head, eBone->head, sizeof(float)*3);
memcpy (newBone->tail, eBone->tail, sizeof(float)*3);
newBone->flag= eBone->flag;
+ if(eBone->flag & BONE_ACTIVE) newBone->flag |= BONE_SELECTED; /* important, editbones can be active with only 1 point selected */
newBone->roll = 0.0f;
newBone->weight = eBone->weight;