3D Manipulator didn't snap to correct center in editmode Armature. Bug as
old as manipulators in blender. :)
This commit is contained in:
Ton Roosendaal 2005-11-28 17:12:43 +00:00
parent 413a86e5d9
commit 705497142d

@ -245,18 +245,13 @@ int calc_manipulator_stats(ScrArea *sa)
else if (G.obedit->type==OB_ARMATURE){ else if (G.obedit->type==OB_ARMATURE){
EditBone *ebo; EditBone *ebo;
for (ebo=G.edbo.first;ebo;ebo=ebo->next){ for (ebo=G.edbo.first;ebo;ebo=ebo->next){
if (ebo->flag & BONE_TIPSEL) {
// If this is a connected child and it's parent is being moved, don't count as selected calc_tw_center(ebo->tail);
if ((ebo->flag & BONE_CONNECTED)&& (ebo->flag & BONE_ROOTSEL) && ebo->parent && (ebo->parent->flag & BONE_TIPSEL)); totsel++;
else { }
if (ebo->flag & BONE_TIPSEL) { if (ebo->flag & BONE_ROOTSEL) {
calc_tw_center(ebo->tail); calc_tw_center(ebo->head);
totsel++; totsel++;
}
if (ebo->flag & BONE_ROOTSEL) {
calc_tw_center(ebo->head);
totsel++;
}
} }
} }
} }