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-11-06 19:39:21 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2017-11-07 13:37:45 +0300
commitc0d01adc444420a33205ea09dcd2323dc6d4c32d (patch)
tree188c684ce0392bad0c242c9c56051c49150808a0 /source/blender/windowmanager
parent383a7632036c574e763a89a2fa591a0739ffd6d4 (diff)
Depsgraph: Remove forced dependencies update/evaluation from file open
This was originally done as a fix for T37713, but now this workaround becomes tricky since we don't know which layers to update scene for. Even more, render engine is supposed to have own dependency graphs amd those ones do not exist yet at the file open time. Keep an eye on T37713, since that's where the original workaround is coming from.
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r--source/blender/windowmanager/intern/wm_files.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c
index 33f7a2ecb4d..1045b2343c4 100644
--- a/source/blender/windowmanager/intern/wm_files.c
+++ b/source/blender/windowmanager/intern/wm_files.c
@@ -502,16 +502,6 @@ static void wm_file_read_post(bContext *C, const bool is_startup_file, const boo
BLI_callback_exec(CTX_data_main(C), NULL, BLI_CB_EVT_VERSION_UPDATE);
BLI_callback_exec(CTX_data_main(C), NULL, BLI_CB_EVT_LOAD_POST);
- /* Would otherwise be handled by event loop.
- *
- * Disabled for startup file, since it causes problems when PyDrivers are used in the startup file.
- * While its possible state of startup file may be wrong,
- * in this case users nearly always load a file to replace the startup file. */
- if (G.background && (is_startup_file == false)) {
- Main *bmain = CTX_data_main(C);
- BKE_scene_update_tagged(bmain->eval_ctx, bmain, CTX_data_scene(C));
- }
-
WM_event_add_notifier(C, NC_WM | ND_FILEREAD, NULL);
/* report any errors.