AfterTrans Delete Duplicates feature for Action Editor now doesn't remove duplicates if you cancelled the transform.
This commit is contained in:
Joshua Leung
2008-02-04 01:30:44 +00:00
parent 9c12534cd9
commit 2da3bd32dd

View File

@@ -3404,8 +3404,11 @@ void special_aftertrans_update(TransInfo *t)
remake_action_ipos((bAction *)data);
/* Do curve cleanups? */
if ((G.saction->flag & SACTION_NOTRANSKEYCULL)==0)
if ( (G.saction->flag & SACTION_NOTRANSKEYCULL)==0 &&
(cancelled == 0) )
{
posttrans_action_clean((bAction *)data);
}
G.saction->flag &= ~SACTION_MOVING;
}
@@ -3420,8 +3423,11 @@ void special_aftertrans_update(TransInfo *t)
testhandles_ipocurve(icu);
}
if ((G.saction->flag & SACTION_NOTRANSKEYCULL)==0)
if ( (G.saction->flag & SACTION_NOTRANSKEYCULL)==0 &&
(cancelled == 0) )
{
posttrans_ipo_clean(key->ipo);
}
}
DAG_object_flush_update(G.scene, OBACT, OB_RECALC_DATA);