Grabbing a targetless IK bone, and ESC, accidentally didnt clear a flag,

causing targetless IK being executed on all bone moving (looked like as if
a bone couldn't be rotated/moved).
This commit is contained in:
2005-11-15 15:54:57 +00:00
parent 621d4a700d
commit c3fc17f45c

View File

@@ -2038,6 +2038,13 @@ void special_aftertrans_update(TransInfo *t)
/* if target-less IK grabbing, we calculate the pchan transforms and clear flag */
if(!cancelled && t->mode==TFM_TRANSLATION)
apply_targetless_ik(ob);
else {
/* not forget to clear the auto flag */
for (pchan=ob->pose->chanbase.first; pchan; pchan=pchan->next) {
bKinematicConstraint *data= has_targetless_ik(pchan);
if(data) data->flag &= ~CONSTRAINT_IK_AUTO;
}
}
if(t->mode==TFM_TRANSLATION)
pose_grab_with_ik_clear(ob);