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-03-23 12:49:48 +0300
committerRichard Antalik <richardantalik@gmail.com>2021-03-23 13:23:20 +0300
commit4e0fd7fff11b76e52a5f11ba8704028c9b3c3ab0 (patch)
tree6a6da2434db1c7f2c854b001074d8b1b9351a91c /source/blender/sequencer/SEQ_edit.h
parentd3758892987d76749fdf1211ed27ff77f39b5b3b (diff)
VSE: Sanitize move_to_meta usage
There were multiple cases that could lead to problems like moving meta strip into itself or into it's children meta strips. Print error string to console when invalid action is requested.
Diffstat (limited to 'source/blender/sequencer/SEQ_edit.h')
-rw-r--r--source/blender/sequencer/SEQ_edit.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/sequencer/SEQ_edit.h b/source/blender/sequencer/SEQ_edit.h
index 38ce665563c..2711e0a7ee3 100644
--- a/source/blender/sequencer/SEQ_edit.h
+++ b/source/blender/sequencer/SEQ_edit.h
@@ -33,9 +33,10 @@ struct Scene;
struct Sequence;
int SEQ_edit_sequence_swap(struct Sequence *seq_a, struct Sequence *seq_b, const char **error_str);
-int SEQ_edit_move_strip_to_meta(struct Scene *scene,
- struct Sequence *src_seq,
- struct Sequence *dst_seqm);
+bool SEQ_edit_move_strip_to_meta(struct Scene *scene,
+ struct Sequence *src_seq,
+ struct Sequence *dst_seqm,
+ const char **error_str);
void SEQ_edit_flag_for_removal(struct Scene *scene,
struct ListBase *seqbase,
struct Sequence *seq);