WM: don't set the area when toggling full-screen
The stated reason for this no longer applies.
This commit is contained in:
parent
4820f16b7f
commit
b787581c9c
Notes:
blender-bot
2023-02-13 18:16:10 +01:00
Referenced by commit 8f6a9c5176
, Fix T89526: "Toggle Maximize Area" clears context screen properties
Referenced by issue #89526, `bpy.ops.screen.screen_full_area()` resets certain fields of the context
|
@ -1413,8 +1413,8 @@ ScrArea *ED_screen_state_toggle(bContext *C, wmWindow *win, ScrArea *area, const
|
|||
screen = screen_state_to_nonnormal(C, win, toggle_area, state);
|
||||
}
|
||||
|
||||
/* XXX bad code: setscreen() ends with first area active. fullscreen render assumes this too */
|
||||
CTX_wm_area_set(C, screen->areabase.first);
|
||||
BLI_assert(CTX_wm_screen(C) == screen);
|
||||
BLI_assert(CTX_wm_area(C) == NULL); /* May have been freed. */
|
||||
|
||||
return screen->areabase.first;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue