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;

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to