[Bf-blender-cvs] [c0d01adc444] blender2.8: Depsgraph: Remove forced dependencies update/evaluation from file open

Sergey Sharybin noreply at git.blender.org
Tue Nov 7 11:39:02 CET 2017


Commit: c0d01adc444420a33205ea09dcd2323dc6d4c32d
Author: Sergey Sharybin
Date:   Mon Nov 6 17:39:21 2017 +0100
Branches: blender2.8
https://developer.blender.org/rBc0d01adc444420a33205ea09dcd2323dc6d4c32d

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.

===================================================================

M	source/blender/windowmanager/intern/wm_files.c

===================================================================

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.



More information about the Bf-blender-cvs mailing list