Edits for consistency with other parts of code
For the record, AnimData vars should be named "adt", not "ad"
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user