Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-09-02 14:21:15 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-09-02 14:25:14 +0300
commit8c74462f188ccf0e71c167579c2fc4b5827e25cc (patch)
treeee181373527185ad534681f7c2806de1b0386c8b /source/blender/editors/space_outliner/outliner_ops.c
parent4e3457115c4a4f64616a9ee51ea2e659ed62e9b2 (diff)
Cleanup: move select all/none/invert into template
Diffstat (limited to 'source/blender/editors/space_outliner/outliner_ops.c')
-rw-r--r--source/blender/editors/space_outliner/outliner_ops.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/source/blender/editors/space_outliner/outliner_ops.c b/source/blender/editors/space_outliner/outliner_ops.c
index 66fd680a1e0..7e8954ad0d1 100644
--- a/source/blender/editors/space_outliner/outliner_ops.c
+++ b/source/blender/editors/space_outliner/outliner_ops.c
@@ -53,6 +53,7 @@
#include "ED_screen.h"
#include "ED_select_utils.h"
+#include "ED_keymap_templates.h"
#include "outliner_intern.h"
@@ -170,12 +171,7 @@ void outliner_keymap(wmKeyConfig *keyconf)
kmi = WM_keymap_add_item(keymap, "OUTLINER_OT_show_one_level", PADMINUS, KM_PRESS, 0, 0);
RNA_boolean_set(kmi->ptr, "open", false); /* close */
- kmi = WM_keymap_add_item(keymap, "OUTLINER_OT_select_all", AKEY, KM_PRESS, 0, 0);
- RNA_enum_set(kmi->ptr, "action", SEL_SELECT);
- kmi = WM_keymap_add_item(keymap, "OUTLINER_OT_select_all", AKEY, KM_PRESS, KM_ALT, 0);
- RNA_enum_set(kmi->ptr, "action", SEL_DESELECT);
- kmi = WM_keymap_add_item(keymap, "OUTLINER_OT_select_all", IKEY, KM_PRESS, KM_CTRL, 0);
- RNA_enum_set(kmi->ptr, "action", SEL_INVERT);
+ ED_keymap_template_select_all(keymap, "OUTLINER_OT_select_all");
WM_keymap_add_item(keymap, "OUTLINER_OT_expanded_toggle", AKEY, KM_PRESS, KM_SHIFT, 0);