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:20:33 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2017-10-25 15:22:24 +0300
commit8e4b3e916e26f6b90ab0514a810cf8a898bff0b1 (patch)
treea92ef0287b7fc7f3f3189ce0ade2f2347bfebe20 /source/blender/makesrna/intern/rna_main_api.c
parente2e5c9a1ee1d2bf4b648b1dacfebba4b2e13d9cc (diff)
parent50d30cc5fd7367618c90313fa55454f0b167c4b5 (diff)
Merge branch 'master' into blender2.8
Diffstat (limited to 'source/blender/makesrna/intern/rna_main_api.c')
-rw-r--r--source/blender/makesrna/intern/rna_main_api.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_main_api.c b/source/blender/makesrna/intern/rna_main_api.c
index 3f1e9ae7f7d..52b953549ba 100644
--- a/source/blender/makesrna/intern/rna_main_api.c
+++ b/source/blender/makesrna/intern/rna_main_api.c
@@ -86,6 +86,7 @@
#include "BKE_linestyle.h"
#include "BKE_workspace.h"
+#include "DEG_depsgraph_build.h"
#include "DEG_depsgraph_query.h"
#include "DNA_armature_types.h"
@@ -556,9 +557,13 @@ static MovieClip *rna_Main_movieclip_load(Main *bmain, ReportList *reports, cons
clip = BKE_movieclip_file_add(bmain, filepath);
}
- if (!clip)
+ if (clip != NULL) {
+ DEG_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;