Bugfix for hinge bone transform for multiple selected bones: now

only transforms the children too if they are connected, otherwise
they get transformed twice.
This commit is contained in:
Brecht Van Lommel
2007-12-19 12:12:38 +00:00
parent da22572e4c
commit 42f80b3037

View File

@@ -626,7 +626,7 @@ static void bone_children_clear_transflag(ListBase *lb)
Bone *bone= lb->first;
for(;bone;bone= bone->next) {
if(bone->flag & BONE_HINGE)
if((bone->flag & BONE_HINGE) && (bone->flag & BONE_CONNECTED))
bone->flag |= BONE_HINGE_CHILD_TRANSFORM;
else
bone->flag &= ~BONE_TRANSFORM;