Sculpt: Add numpad aliases for number keymap entries in expand modal map

This commit is contained in:
Joseph Eagar 2023-01-26 16:57:28 -08:00
parent 3e90390918
commit 647cffc001
Notes: blender-bot 2023-02-14 09:19:09 +01:00
Referenced by issue #104087, Cycles GPU crash when switching to Rendered 3DViewport --MacOS 13.1--   AMD Radeon RX 6900 XT
1 changed files with 2 additions and 0 deletions

View File

@ -6281,6 +6281,8 @@ def km_sculpt_expand_modal(_params):
("MOVE_TOGGLE", {"type": 'SPACE', "value": 'ANY', "any": True}, None),
*((e, {"type": NUMBERS_1[i], "value": 'PRESS', "any": True}, None) for i, e in enumerate(
("FALLOFF_GEODESICS", "FALLOFF_TOPOLOGY", "FALLOFF_TOPOLOGY_DIAGONALS", "FALLOFF_SPHERICAL"))),
*((e, {"type": "NUMPAD_%i" % (i+1), "value": 'PRESS', "any": True}, None) for i, e in enumerate(
("FALLOFF_GEODESICS", "FALLOFF_TOPOLOGY", "FALLOFF_TOPOLOGY_DIAGONALS", "FALLOFF_SPHERICAL"))),
("SNAP_TOGGLE", {"type": 'LEFT_CTRL', "value": 'ANY'}, None),
("SNAP_TOGGLE", {"type": 'RIGHT_CTRL', "value": 'ANY'}, None),
("LOOP_COUNT_INCREASE", {"type": 'W', "value": 'PRESS', "any": True, "repeat": True}, None),