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,10 +245,6 @@ 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 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) { if (ebo->flag & BONE_TIPSEL) {
calc_tw_center(ebo->tail); calc_tw_center(ebo->tail);
totsel++; totsel++;
@ -259,7 +255,6 @@ int calc_manipulator_stats(ScrArea *sa)
} }
} }
} }
}
else if ELEM3(G.obedit->type, OB_CURVE, OB_SURF, OB_FONT) { else if ELEM3(G.obedit->type, OB_CURVE, OB_SURF, OB_FONT) {
Nurb *nu; Nurb *nu;
BezTriple *bezt; BezTriple *bezt;