Bugfix for hinge bone transform for multiple selected bones: now
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Wed, 19 Dec 2007 12:12:38 +0000 (12:12 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Wed, 19 Dec 2007 12:12:38 +0000 (12:12 +0000)
only transforms the children too if they are connected, otherwise
they get transformed twice.

source/blender/src/transform_conversions.c

index bde79b068dd4c5963538ca5b98d46709d704ab94..405168f66549b7a2fa3a59a3b521f442e7d66504 100644 (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;