Fix T45456: Error's in splash don't restore cursor

This commit is contained in:
Campbell Barton 2015-07-16 17:28:20 +10:00
parent 01a8216a4b
commit 6568b6d1cd
Notes: blender-bot 2023-02-14 08:53:17 +01:00
Referenced by issue #45456, Error loading file from splash locks cursor in 'wait'
1 changed files with 5 additions and 0 deletions

View File

@ -516,6 +516,11 @@ void wm_window_add_ghostwindows(wmWindowManager *wm)
wm_init_state.override_flag &= ~WIN_OVERRIDE_WINSTATE;
}
/* without this, cursor restore may fail, T45456 */
if (win->cursor == 0) {
win->cursor = CURSOR_STD;
}
wm_window_add_ghostwindow(wm, "Blender", win);
}
/* happens after fileread */