[Bf-blender-cvs] [bd67bf4d106] master: Fix VSE move_to_meta function moving meta strip

Richard Antalik noreply at git.blender.org
Tue Aug 31 00:27:57 CEST 2021


Commit: bd67bf4d106e260a9b246931187862d54f9fb69c
Author: Richard Antalik
Date:   Tue Aug 31 00:11:48 2021 +0200
Branches: master
https://developer.blender.org/rBbd67bf4d106e260a9b246931187862d54f9fb69c

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.

===================================================================

M	source/blender/sequencer/intern/strip_edit.c

===================================================================

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



More information about the Bf-blender-cvs mailing list