UI: Use numselect for redo-popup (for move layers)

This commit is contained in:
Campbell Barton 2015-06-13 00:39:19 +10:00
parent e2e414218b
commit a9d3f663d3
Notes: blender-bot 2023-02-14 09:00:25 +01:00
Referenced by issue #45055, Move to layer doesn't accept number key input
1 changed files with 2 additions and 1 deletions

View File

@ -1517,7 +1517,8 @@ static uiBlock *wm_block_create_redo(bContext *C, ARegion *ar, void *arg_op)
block = UI_block_begin(C, ar, __func__, UI_EMBOSS);
UI_block_flag_disable(block, UI_BLOCK_LOOP);
UI_block_flag_enable(block, UI_BLOCK_KEEP_OPEN | UI_BLOCK_MOVEMOUSE_QUIT);
/* UI_BLOCK_NUMSELECT for layer buttons */
UI_block_flag_enable(block, UI_BLOCK_NUMSELECT | UI_BLOCK_KEEP_OPEN | UI_BLOCK_MOVEMOUSE_QUIT);
/* if register is not enabled, the operator gets freed on OPERATOR_FINISHED
* ui_apply_but_funcs_after calls ED_undo_operator_repeate_cb and crashes */