Keymap: use number keys to change particle modes

Match behavior for meshes.

Fixes T67161
This commit is contained in:
Campbell Barton 2019-07-18 20:22:15 +10:00
parent 5c8b1a1266
commit 7a82896fbc
Notes: blender-bot 2023-02-14 04:58:56 +01:00
Referenced by issue #67161, Missing Hotkeys (Particle Edit Mode)
Referenced by issue #57979, Missing Hotkeys ( Particle Edit Mode - 1, 2, 3)
1 changed files with 7 additions and 0 deletions

View File

@ -4157,6 +4157,13 @@ def km_particle(params):
{"properties": [("data_path_primary", 'tool_settings.particle_edit.brush.strength')]}),
op_menu("VIEW3D_MT_particle_context_menu", params.context_menu_event),
("particle.weight_set", {"type": 'K', "value": 'PRESS', "shift": True}, None),
*(
(("wm.context_set_enum",
{"type": NUMBERS_1[i], "value": 'PRESS'},
{"properties": [("data_path", "tool_settings.particle_edit.select_mode"), ("value", value)]})
for i, value in enumerate(('PATH', 'POINT', 'TIP'))
)
),
*_template_items_proportional_editing(connected=False),
])