Bugfix to allow Grabbing of bones with a parent, but not connected

(was broken after targetless IK commit).
This commit is contained in:
2005-11-01 19:32:54 +00:00
parent 0b739ab8e8
commit 68ae6aa776

View File

@@ -631,9 +631,11 @@ static void set_pose_transflags(TransInfo *t, Object *ob)
if(bone->flag & BONE_TRANSFORM) {
t->total++;
if(t->mode==TFM_TRANSLATION && pchan->parent) {
if( has_targetless_ik(pchan)==NULL ) {
t->mode= TFM_ROTATION;
if(t->mode==TFM_TRANSLATION) {
if(pchan->parent && (pchan->bone->flag & BONE_CONNECTED)) {
if( has_targetless_ik(pchan)==NULL ) {
t->mode= TFM_ROTATION;
}
}
}
}