Edits for consistency with other parts of code

For the record, AnimData vars should be named "adt", not "ad"
This commit is contained in:
Joshua Leung
2012-11-09 09:57:35 +00:00
parent 2bb174cfa4
commit 98e60b2f43

View File

@@ -119,16 +119,16 @@ void free_qtcodecdata(QuicktimeCodecData *qcd)
static void remove_sequencer_fcurves(Scene *sce)
{
AnimData *ad = BKE_animdata_from_id(&sce->id);
AnimData *adt = BKE_animdata_from_id(&sce->id);
if (ad && ad->action) {
if (adt && adt->action) {
FCurve *fcu, *nextfcu;
for (fcu = ad->action->curves.first; fcu; fcu = nextfcu) {
for (fcu = adt->action->curves.first; fcu; fcu = nextfcu) {
nextfcu = fcu->next;
if ((fcu->rna_path) && strstr(fcu->rna_path, "sequences_all")) {
action_groups_remove_channel(ad->action, fcu);
action_groups_remove_channel(adt->action, fcu);
free_fcurve(fcu);
}
}