diff options
author | Ton Roosendaal <ton@blender.org> | 2005-11-28 20:12:43 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2005-11-28 20:12:43 +0300 |
commit | 705497142d5b9a16bb5c22f31cbeb8a88d6a6920 (patch) | |
tree | 7f214559cc382a86da7593e565e53d2356188933 /source/blender/src/transform_manipulator.c | |
parent | 413a86e5d9b792d2346c5b1ea1a5bc364af09e60 (diff) |
Bugfix #3469
3D Manipulator didn't snap to correct center in editmode Armature. Bug as
old as manipulators in blender. :)
Diffstat (limited to 'source/blender/src/transform_manipulator.c')
-rw-r--r-- | source/blender/src/transform_manipulator.c | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/source/blender/src/transform_manipulator.c b/source/blender/src/transform_manipulator.c index ef7b15427d4..7e41008700d 100644 --- a/source/blender/src/transform_manipulator.c +++ b/source/blender/src/transform_manipulator.c @@ -245,18 +245,13 @@ int calc_manipulator_stats(ScrArea *sa) else if (G.obedit->type==OB_ARMATURE){ EditBone *ebo; for (ebo=G.edbo.first;ebo;ebo=ebo->next){ - - // If this is a connected child and it's parent is being moved, don't count as selected - if ((ebo->flag & BONE_CONNECTED)&& (ebo->flag & BONE_ROOTSEL) && ebo->parent && (ebo->parent->flag & BONE_TIPSEL)); - else { - if (ebo->flag & BONE_TIPSEL) { - calc_tw_center(ebo->tail); - totsel++; - } - if (ebo->flag & BONE_ROOTSEL) { - calc_tw_center(ebo->head); - totsel++; - } + if (ebo->flag & BONE_TIPSEL) { + calc_tw_center(ebo->tail); + totsel++; + } + if (ebo->flag & BONE_ROOTSEL) { + calc_tw_center(ebo->head); + totsel++; } } } |