1
1

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.
This commit is contained in:
2021-08-31 00:11:48 +02:00
parent 1541fbb4a0
commit bd67bf4d10

View File

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