Fix T80333: cursor disappears after using navigation gizmo in editmode
Caused by rBe490dc4346db: UI: Skip unnecessary cursor setting Above commit returned early if the cursor was already set, but did this before visibility was regained, now return (still early) after setting visibility. Reviewed by @Severin in T80333
This commit is contained in:
@@ -149,12 +149,6 @@ void WM_cursor_set(wmWindow *win, int curs)
|
||||
curs = win->modalcursor;
|
||||
}
|
||||
|
||||
if (win->cursor == curs) {
|
||||
return; /* Cursor is already set */
|
||||
}
|
||||
|
||||
win->cursor = curs;
|
||||
|
||||
if (curs == WM_CURSOR_NONE) {
|
||||
GHOST_SetCursorVisibility(win->ghostwin, 0);
|
||||
return;
|
||||
@@ -162,6 +156,12 @@ void WM_cursor_set(wmWindow *win, int curs)
|
||||
|
||||
GHOST_SetCursorVisibility(win->ghostwin, 1);
|
||||
|
||||
if (win->cursor == curs) {
|
||||
return; /* Cursor is already set */
|
||||
}
|
||||
|
||||
win->cursor = curs;
|
||||
|
||||
if (curs < 0 || curs >= WM_CURSOR_NUM) {
|
||||
BLI_assert(!"Invalid cursor number");
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user