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-20 03:53:03 +0300
committerRichard Antalik <richardantalik@gmail.com>2021-03-20 03:53:03 +0300
commitf65a3172a8b7513842dcf934197ed4174e37a4b5 (patch)
tree2cdd7d2d97faaee30f6e5c35e6772d0bbbe6f6d8 /source/blender/sequencer/intern/strip_add.c
parent3433d1b7f43a587312e05aa4b5b3d7a44b57bc1b (diff)
Fix issues introduced strip loading refactoring
- Adding effect strip resulted in strip with no name - Adding sound strip attempted to read `fit_method` RNA property, that did not exist, causing error messages in console These issues were introduced in bbb1936411a5.
Diffstat (limited to 'source/blender/sequencer/intern/strip_add.c')
-rw-r--r--source/blender/sequencer/intern/strip_add.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/sequencer/intern/strip_add.c b/source/blender/sequencer/intern/strip_add.c
index d90524ddbd7..c4812228260 100644
--- a/source/blender/sequencer/intern/strip_add.c
+++ b/source/blender/sequencer/intern/strip_add.c
@@ -105,7 +105,7 @@ static void seq_add_generic_update(Scene *scene, ListBase *seqbase, Sequence *se
static void seq_add_set_name(Sequence *seq, SeqLoadData *load_data)
{
- if (load_data->name != NULL) {
+ if (load_data->name != NULL && load_data->name[0] != '\0') {
BLI_strncpy(seq->name + 2, load_data->name, sizeof(seq->name) - 2);
}
else {