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:
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
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue