From a0fd7ab28d5365985c8684079097e102915a3bde Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Thu, 15 Jan 2015 14:22:28 +0500 Subject: Revert "Make version_update() callback being invoked when linking/appending datablocks" This reverts commit fbc2909cef83bce722fab8c68e49c878603b4ee8. The reason for revert is that the commit made it so bpy.data is not set to any of the new main (on both file open and file link/append) which basically totally broke versioning code. Needs some smarter solution there. --- source/blender/windowmanager/intern/wm_init_exit.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/windowmanager/intern/wm_init_exit.c') diff --git a/source/blender/windowmanager/intern/wm_init_exit.c b/source/blender/windowmanager/intern/wm_init_exit.c index 03c6414ef76..cb03d022afd 100644 --- a/source/blender/windowmanager/intern/wm_init_exit.c +++ b/source/blender/windowmanager/intern/wm_init_exit.c @@ -240,6 +240,7 @@ void WM_init(bContext *C, int argc, const char **argv) * * unlikely any handlers are set but its possible, * note that recovering the last session does its own callbacks. */ + 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); } } -- cgit v1.2.3