Sequencer: skip redundant F-curve GSet allocation

This commit is contained in:
2022-04-05 09:30:26 +10:00
parent 25a283acce
commit 43a582a2ab
2 changed files with 20 additions and 4 deletions

View File

@@ -2457,6 +2457,9 @@ static void sequencer_copy_animation(Scene *scene, Sequence *seq)
}
GSet *fcurves = SEQ_fcurves_by_strip_get(seq, &scene->adt->action->curves);
if (fcurves == NULL) {
return;
}
GSET_FOREACH_BEGIN (FCurve *, fcu, fcurves) {
BLI_addtail(&fcurves_clipboard, BKE_fcurve_copy(fcu));