Fix manipulator resetting the cursor

This commit is contained in:
Campbell Barton 2018-05-18 11:42:37 +02:00
parent 2451a1951e
commit 1cf0930e89
1 changed files with 2 additions and 1 deletions

View File

@ -865,13 +865,14 @@ void wm_manipulatormap_highlight_set(
if (C && mpr->type->cursor_get) {
wmWindow *win = CTX_wm_window(C);
win->lastcursor = win->cursor;
WM_cursor_set(win, mpr->type->cursor_get(mpr));
}
}
else {
if (C) {
wmWindow *win = CTX_wm_window(C);
WM_cursor_set(win, CURSOR_STD);
WM_cursor_set(win, win->lastcursor);
}
}