diff options
Diffstat (limited to 'source/blender/editors/metaball/mball_ops.c')
-rw-r--r-- | source/blender/editors/metaball/mball_ops.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/source/blender/editors/metaball/mball_ops.c b/source/blender/editors/metaball/mball_ops.c index 97636b59143..c3c404f37ac 100644 --- a/source/blender/editors/metaball/mball_ops.c +++ b/source/blender/editors/metaball/mball_ops.c @@ -38,6 +38,7 @@ #include "ED_mball.h" #include "ED_screen.h" #include "ED_select_utils.h" +#include "ED_keymap_templates.h" #include "ED_object.h" #include "mball_intern.h" @@ -89,12 +90,7 @@ void ED_keymap_metaball(wmKeyConfig *keyconf) WM_keymap_add_item(keymap, "MBALL_OT_duplicate_move", DKEY, KM_PRESS, KM_SHIFT, 0); - kmi = WM_keymap_add_item(keymap, "MBALL_OT_select_all", AKEY, KM_PRESS, 0, 0); - RNA_enum_set(kmi->ptr, "action", SEL_SELECT); - kmi = WM_keymap_add_item(keymap, "MBALL_OT_select_all", AKEY, KM_PRESS, KM_ALT, 0); - RNA_enum_set(kmi->ptr, "action", SEL_DESELECT); - kmi = WM_keymap_add_item(keymap, "MBALL_OT_select_all", IKEY, KM_PRESS, KM_CTRL, 0); - RNA_enum_set(kmi->ptr, "action", SEL_INVERT); + ED_keymap_template_select_all(keymap, "MBALL_OT_select_all"); WM_keymap_add_item(keymap, "MBALL_OT_select_similar", GKEY, KM_PRESS, KM_SHIFT, 0); |