UI: Use Separate Mouse Cursors for Join Operations
To better indicate the point during dragging where join changes to docking, use specific "join" cursors like we used to use. Pull Request: https://projects.blender.org/blender/blender/pulls/131167
This commit is contained in:
committed by
Harley Acheson
parent
a0c0eefd5d
commit
798a48f6ef
@@ -3902,6 +3902,23 @@ static int area_join_cursor(sAreaJoinData *jd, const wmEvent *event)
|
||||
return WM_CURSOR_EDIT;
|
||||
}
|
||||
|
||||
if (jd->dir != SCREEN_DIR_NONE) {
|
||||
/* Joining */
|
||||
switch (jd->dir) {
|
||||
case SCREEN_DIR_N:
|
||||
return WM_CURSOR_N_ARROW;
|
||||
break;
|
||||
case SCREEN_DIR_S:
|
||||
return WM_CURSOR_S_ARROW;
|
||||
break;
|
||||
case SCREEN_DIR_W:
|
||||
return WM_CURSOR_W_ARROW;
|
||||
break;
|
||||
default:
|
||||
return WM_CURSOR_E_ARROW;
|
||||
}
|
||||
}
|
||||
|
||||
if (jd->dir != SCREEN_DIR_NONE || jd->dock_target != AreaDockTarget::None) {
|
||||
#if defined(__APPLE__)
|
||||
return WM_CURSOR_HAND_CLOSED;
|
||||
|
||||
Reference in New Issue
Block a user