Fix T90630: Crash loading certain user preferences
Clearing the window was done in wm_file_read_post which was deferred.
This was needed as it left the context in an invalid state
where the window was set but the screen wasn't.
Crashing when setting up keymaps that attempted to access the
scene from the window in the property update function.
Regression in 497bc4d199
This commit is contained in:
parent
ad2fb92e9c
commit
6293cf6131
Notes:
blender-bot
2023-02-14 18:33:35 +01:00
Referenced by issue #90639, Blender crashes upon opening video file. Referenced by issue #90630, Crash with certain startup/user preferences configurations after recent changes to WM init (rB497bc4d19977) Referenced by issue blender/blender-addons#90623, Crash on startup with Copy Attributes Menu enabled
|
@ -1343,6 +1343,9 @@ void wm_homefile_read_ex(bContext *C,
|
|||
else {
|
||||
*r_params_file_read_post = MEM_mallocN(sizeof(struct wmFileReadPost_Params), __func__);
|
||||
**r_params_file_read_post = params_file_read_post;
|
||||
|
||||
/* Match #wm_file_read_post which leaves the window cleared too. */
|
||||
CTX_wm_window_set(C, NULL);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue