UI: Incorrect Cursor Used in Split Area Operator
Incorrect cursor shown for horizontal split when selected from edge context menu. Differential Revision: https://developer.blender.org/D6124 Reviewed by Campbell Barton
This commit is contained in:
Submodule release/datafiles/locale updated: 6a6b84fd50...1127ff3143
Submodule release/scripts/addons updated: 46b1ada7f5...d92964b0e5
Submodule release/scripts/addons_contrib updated: b5e801446c...786f470432
@@ -2119,7 +2119,7 @@ static void area_split_preview_update_cursor(bContext *C, wmOperator *op)
|
||||
{
|
||||
wmWindow *win = CTX_wm_window(C);
|
||||
int dir = RNA_enum_get(op->ptr, "direction");
|
||||
WM_cursor_set(win, (dir == 'n' || dir == 's') ? WM_CURSOR_H_SPLIT : WM_CURSOR_V_SPLIT);
|
||||
WM_cursor_set(win, dir == 'h' ? WM_CURSOR_H_SPLIT : WM_CURSOR_V_SPLIT);
|
||||
}
|
||||
|
||||
/* UI callback, adds new handler */
|
||||
|
Submodule source/tools updated: 8598818108...ce943dad8a
Reference in New Issue
Block a user