From bd67bf4d106e260a9b246931187862d54f9fb69c Mon Sep 17 00:00:00 2001 From: Richard Antalik Date: Tue, 31 Aug 2021 00:11:48 +0200 Subject: Fix VSE move_to_meta function moving meta strip API function `move_to_meta` should move strips without changing context data like `MetaStack` that tells UI which meta strip should be displayed and operated upon. `SEQ_time_update_sequence` relied on `MetaStack` to update meta strip content length. Instead of changing function `SEQ_time_update_sequence`, use function `SEQ_time_update_meta_strip_range` directly. This is because caller would have to be aware of parent meta strip that needs update anyway. --- source/blender/sequencer/intern/strip_edit.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/sequencer') diff --git a/source/blender/sequencer/intern/strip_edit.c b/source/blender/sequencer/intern/strip_edit.c index 17ff1c90be8..820a73cb8d7 100644 --- a/source/blender/sequencer/intern/strip_edit.c +++ b/source/blender/sequencer/intern/strip_edit.c @@ -267,6 +267,7 @@ bool SEQ_edit_move_strip_to_meta(Scene *scene, SEQ_relations_invalidate_cache_preprocessed(scene, seq); /* Update meta. */ + SEQ_time_update_meta_strip_range(scene, dst_seqm); SEQ_time_update_sequence(scene, dst_seqm); if (SEQ_transform_test_overlap(&dst_seqm->seqbase, seq)) { SEQ_transform_seqbase_shuffle(&dst_seqm->seqbase, seq, scene); -- cgit v1.2.3