Pressing ESC on armature posemode now restores position correctly again.

This commit is contained in:
2005-07-06 07:31:43 +00:00
parent d956c62044
commit f0ae48dfe5

View File

@@ -1335,7 +1335,7 @@ void special_aftertrans_update(char mode, int flip, short canceled)
if (!act)
act=G.obpose->action=add_empty_action();
set_pose_keys(G.obpose); // sets chan->flag to POSE_KEY is bone selected
set_pose_keys(G.obpose); // sets chan->flag to POSE_KEY if bone selected
for (pchan=pose->chanbase.first; pchan; pchan=pchan->next){
if (pchan->flag & POSE_KEY){
@@ -1362,6 +1362,9 @@ void special_aftertrans_update(char mode, int flip, short canceled)
/* do not call this always, we dont want actions to update, for inserting keys */
DAG_object_flush_update(G.scene, G.obpose, OB_RECALC_DATA);
}
else if(canceled) /* but if cancelled we do the update */
DAG_object_flush_update(G.scene, G.obpose, OB_RECALC_DATA);
}
else {
base= FIRSTBASE;