Revert #105225: WM Check for lack of active window
This check is no longer needed as Campbell has removed the need to pass around the active window. This check could potential be error- hiding so best removed if not needed. Pull Request #105351
This commit is contained in:
@@ -501,14 +501,6 @@ void WM_check(bContext *C)
|
||||
|
||||
/* Case: no open windows at all, for old file reads. */
|
||||
wm_window_ghostwindows_ensure(wm);
|
||||
|
||||
/* It possible for a pre-250 file to have window but none set active. See #104726. */
|
||||
if (wm->winactive == NULL) {
|
||||
wm->winactive = (wmWindow *)wm->windows.first;
|
||||
if (wm->winactive != NULL) {
|
||||
wm->winactive->active = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Case: file-read. */
|
||||
|
||||
Reference in New Issue
Block a user