From c0d01adc444420a33205ea09dcd2323dc6d4c32d Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Mon, 6 Nov 2017 17:39:21 +0100 Subject: [PATCH] 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. --- source/blender/windowmanager/intern/wm_files.c | 10 ---------- 1 file changed, 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.