Fix T47632: Revert "Fix (unreported) crash when opening a file from splash screen when 'load UI' option is disabled."

This reverts commit 935e241fa6.

Issue will be fixed in a more localized way for now (not that nice, since this use-after-free can possibly happen
in other places too, but only safe solution for 2.77).

This commit is to be backported in 2.77.
This commit is contained in:
Bastien Montagne 2016-03-01 11:47:33 +01:00
parent 0187a5f292
commit 607d916f50
Notes: blender-bot 2023-02-14 19:49:52 +01:00
Referenced by issue blender/blender-addons#47632, Redrawing dialogs
1 changed files with 0 additions and 5 deletions

View File

@ -820,7 +820,6 @@ void CTX_wm_manager_set(bContext *C, wmWindowManager *wm)
C->wm.screen = NULL;
C->wm.area = NULL;
C->wm.region = NULL;
C->wm.menu = NULL;
}
void CTX_wm_window_set(bContext *C, wmWindow *win)
@ -831,7 +830,6 @@ void CTX_wm_window_set(bContext *C, wmWindow *win)
C->data.scene = C->wm.screen->scene;
C->wm.area = NULL;
C->wm.region = NULL;
C->wm.menu = NULL;
}
void CTX_wm_screen_set(bContext *C, bScreen *screen)
@ -841,20 +839,17 @@ void CTX_wm_screen_set(bContext *C, bScreen *screen)
C->data.scene = C->wm.screen->scene;
C->wm.area = NULL;
C->wm.region = NULL;
C->wm.menu = NULL;
}
void CTX_wm_area_set(bContext *C, ScrArea *area)
{
C->wm.area = area;
C->wm.region = NULL;
C->wm.menu = NULL;
}
void CTX_wm_region_set(bContext *C, ARegion *region)
{
C->wm.region = region;
C->wm.menu = NULL;
}
void CTX_wm_menu_set(bContext *C, ARegion *menu)