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:
authorSergey Sharybin <sergey.vfx@gmail.com>2017-10-25 15:18:21 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2017-10-25 15:20:20 +0300
commit50d30cc5fd7367618c90313fa55454f0b167c4b5 (patch)
tree152732af0ece4183457867b2bd24c2b2c2ae74d5 /source/blender/makesrna/intern/rna_main_api.c
parentea5cf3ff7ae9a20fda9d26159a8ada6c2970aa48 (diff)
Depsgraph: Need to tag relations for update after new clip was added
Diffstat (limited to 'source/blender/makesrna/intern/rna_main_api.c')
-rw-r--r--source/blender/makesrna/intern/rna_main_api.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_main_api.c b/source/blender/makesrna/intern/rna_main_api.c
index dc3bbf6ca45..7e2ced81a6d 100644
--- a/source/blender/makesrna/intern/rna_main_api.c
+++ b/source/blender/makesrna/intern/rna_main_api.c
@@ -543,9 +543,13 @@ static MovieClip *rna_Main_movieclip_load(Main *bmain, ReportList *reports, cons
clip = BKE_movieclip_file_add(bmain, filepath);
}
- if (!clip)
+ if (clip != NULL) {
+ DAG_relations_tag_update(bmain);
+ }
+ else {
BKE_reportf(reports, RPT_ERROR, "Cannot read '%s': %s", filepath,
errno ? strerror(errno) : TIP_("unable to load movie clip"));
+ }
id_us_min((ID *)clip);
return clip;