[Bf-blender-cvs] [b6d5c010e6b] temp-T96710-pbvh-pixels: Fix T96595: Animation not duplicated for meta children
Richard Antalik
noreply at git.blender.org
Fri Apr 8 11:07:43 CEST 2022
Commit: b6d5c010e6b4533acd7337505b2c7b60d6480d31
Author: Richard Antalik
Date: Wed Apr 6 15:04:11 2022 +0200
Branches: temp-T96710-pbvh-pixels
https://developer.blender.org/rBb6d5c010e6b4533acd7337505b2c7b60d6480d31
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