Fix T96595: Animation not duplicated for meta children

Iterate over meta strip content and duplicate animation for all strips.
recursively.
This commit is contained in:
Richard Antalik 2022-04-06 15:04:11 +02:00
parent 1ec93507e1
commit c14ed182f5
Notes: blender-bot 2023-02-14 11:35:46 +01:00
Referenced by issue #97110, Regression: Using Sculpt mode Paint tool and Dyntopo crashes blender.
Referenced by issue #96595, VSE Regression: Duplicating grouped strips does not maintain F-Curve keyframes
1 changed files with 7 additions and 0 deletions

View File

@ -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;