Fix T40325: Part II

Use same cursors for GRIP buttons as for window resize e.g.
This commit is contained in:
Bastien Montagne 2014-05-23 13:05:40 +02:00
parent a59262e325
commit d3a94941ef
Notes: blender-bot 2023-05-31 04:43:10 +02:00
Referenced by issue #40325, UILists do not save their height anymore
1 changed files with 1 additions and 1 deletions

View File

@ -6698,7 +6698,7 @@ static void button_activate_init(bContext *C, ARegion *ar, uiBut *but, uiButtonA
if (but->type == GRIP) {
const bool horizontal = (BLI_rctf_size_x(&but->rect) < BLI_rctf_size_y(&but->rect));
WM_cursor_modal_set(data->window, horizontal ? BC_EW_ARROWCURSOR : BC_NS_ARROWCURSOR);
WM_cursor_modal_set(data->window, horizontal ? CURSOR_X_MOVE : CURSOR_Y_MOVE);
}
}