Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Antalik <richardantalik@gmail.com>2021-08-31 01:11:48 +0300
committerRichard Antalik <richardantalik@gmail.com>2021-08-31 01:27:19 +0300
commitbd67bf4d106e260a9b246931187862d54f9fb69c (patch)
tree19a1ee046cc6c22e1186c1ffa564df49a9599c7e /source/blender/sequencer
parent1541fbb4a0863bdf063903a8b9afdadd613ed8cd (diff)
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.
Diffstat (limited to 'source/blender/sequencer')
-rw-r--r--source/blender/sequencer/intern/strip_edit.c1
1 files changed, 1 insertions, 0 deletions
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);