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:
Harley Acheson 2019-10-24 09:17:55 -07:00
parent 0c66039cfd
commit e50b4d7de4
5 changed files with 5 additions and 5 deletions

@ -1 +1 @@
Subproject commit 6a6b84fd50538a65276c729b5d396be615bc79f2
Subproject commit 1127ff3143efdda5152a6b1f5986d567d5161957

@ -1 +1 @@
Subproject commit 46b1ada7f5f2d396f712e9a1376922ca89475486
Subproject commit d92964b0e5035e4532b539137e937591eba88b26

@ -1 +1 @@
Subproject commit b5e801446c820e7f5725e2e09f8c2a12a4449f45
Subproject commit 786f4704328507a95b6c1d254bf4cf400a5e8f0c

View File

@ -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 */

@ -1 +1 @@
Subproject commit 8598818108ddaf35e30d2a2dbd408ad371e41eb5
Subproject commit ce943dad8a21b4784e2dcef12d8f893473cddb7f