diff options
author | Campbell Barton <campbell@blender.org> | 2022-04-05 02:30:26 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-04-05 02:30:26 +0300 |
commit | 43a582a2abff46c295711a88349a9222e12b89a6 (patch) | |
tree | 4072ac70026bc0c4398b7533b0f436c4b0b6aadf /source/blender/editors/space_sequencer | |
parent | 25a283acce6b34690468d5a521a44c16ee211c2d (diff) |
Sequencer: skip redundant F-curve GSet allocation
Diffstat (limited to 'source/blender/editors/space_sequencer')
-rw-r--r-- | source/blender/editors/space_sequencer/sequencer_edit.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/space_sequencer/sequencer_edit.c b/source/blender/editors/space_sequencer/sequencer_edit.c index b77f780e413..70fba9d4ac9 100644 --- a/source/blender/editors/space_sequencer/sequencer_edit.c +++ b/source/blender/editors/space_sequencer/sequencer_edit.c @@ -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)); |