Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorRichard Antalik <richardantalik@gmail.com>2022-04-06 16:04:11 +0300
committerFabian Schempp <fabianschempp@googlemail.com>2022-04-11 01:31:58 +0300
commitc8ceb1c80edc8befa4dbb112abd1b388386a6c97 (patch)
tree8556d09f5627bfdeb05984fe9132b00349bdf9ba /source
parent3cd989b05a959135857e59329b69948960a6cb29 (diff)
Fix T96595: Animation not duplicated for meta children
Iterate over meta strip content and duplicate animation for all strips. recursively.
Diffstat (limited to 'source')
-rw-r--r--source/blender/sequencer/intern/animation.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/sequencer/intern/animation.c b/source/blender/sequencer/intern/animation.c
index 82dc5970a7f..b970038eeed 100644
--- a/source/blender/sequencer/intern/animation.c
+++ b/source/blender/sequencer/intern/animation.c
@@ -139,6 +139,13 @@ void SEQ_animation_duplicate(Scene *scene, Sequence *seq, ListBase *list)
if (BLI_listbase_is_empty(list)) {
return;
}
+
+ if (seq->type == SEQ_TYPE_META) {
+ LISTBASE_FOREACH (Sequence*, meta_child, &seq->seqbase){
+ SEQ_animation_duplicate(scene, meta_child, list);
+ }
+ }
+
GSet *fcurves = SEQ_fcurves_by_strip_get(seq, list);
if (fcurves == NULL) {
return;