[Bf-blender-cvs] [c14ed182f51] master: Fix T96595: Animation not duplicated for meta children

Richard Antalik noreply at git.blender.org
Wed Apr 6 15:12:46 CEST 2022


Commit: c14ed182f516cf723b88603a3282d692ba631feb
Author: Richard Antalik
Date:   Wed Apr 6 15:04:11 2022 +0200
Branches: master
https://developer.blender.org/rBc14ed182f516cf723b88603a3282d692ba631feb

Fix T96595: Animation not duplicated for meta children

Iterate over meta strip content and duplicate animation for all strips.
recursively.

===================================================================

M	source/blender/sequencer/intern/animation.c

===================================================================

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;



More information about the Bf-blender-cvs mailing list