diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2005-11-01 22:32:54 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2005-11-01 22:32:54 +0300 |
commit | 68ae6aa7760492777aef77d54cbf2c4fa00b2830 (patch) | |
tree | 8b556a0ff5849c9e2f6f236610f698beb0f03970 /source/blender/src/transform_conversions.c | |
parent | 0b739ab8e8f31f0077a2075cac82e7a9b892fb16 (diff) |
Bugfix to allow Grabbing of bones with a parent, but not connected
(was broken after targetless IK commit).
Diffstat (limited to 'source/blender/src/transform_conversions.c')
-rwxr-xr-x | source/blender/src/transform_conversions.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source/blender/src/transform_conversions.c b/source/blender/src/transform_conversions.c index 9cb84b03949..06b035a615c 100755 --- a/source/blender/src/transform_conversions.c +++ b/source/blender/src/transform_conversions.c @@ -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; + } } } } |