diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2017-12-29 16:36:54 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2017-12-29 18:36:55 +0300 |
commit | 8252a414d8cb15b42726d6f96d01cae97514d793 (patch) | |
tree | 409b68d1afc15c1bfefc3df81e2b3c2f35a036d5 /source/blender/editors/space_outliner/outliner_ops.c | |
parent | f2a24afe8c1aa0221b378585e3c1901cc568a6d7 (diff) |
Outliner/Collection: Operator to create (nested) collections
This is part of T53495.
This operator is intended for the outliner when viewing Collections (at the moment, Master Collection Tree).
It has a shortcut "C", and will be added to a menu shortly.
Diffstat (limited to 'source/blender/editors/space_outliner/outliner_ops.c')
-rw-r--r-- | source/blender/editors/space_outliner/outliner_ops.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/space_outliner/outliner_ops.c b/source/blender/editors/space_outliner/outliner_ops.c index 856dd022c14..925d7a83b36 100644 --- a/source/blender/editors/space_outliner/outliner_ops.c +++ b/source/blender/editors/space_outliner/outliner_ops.c @@ -335,6 +335,8 @@ void outliner_operatortypes(void) WM_operatortype_append(OUTLINER_OT_collection_objects_remove); WM_operatortype_append(OUTLINER_OT_collection_objects_select); WM_operatortype_append(OUTLINER_OT_collection_objects_deselect); + + WM_operatortype_append(OUTLINER_OT_collection_nested_new); } static wmKeyMap *outliner_item_drag_drop_modal_keymap(wmKeyConfig *keyconf) @@ -432,6 +434,8 @@ void outliner_keymap(wmKeyConfig *keyconf) WM_keymap_verify_item(keymap, "OUTLINER_OT_drivers_add_selected", DKEY, KM_PRESS, 0, 0); WM_keymap_verify_item(keymap, "OUTLINER_OT_drivers_delete_selected", DKEY, KM_PRESS, KM_ALT, 0); + WM_keymap_verify_item(keymap, "OUTLINER_OT_collection_nested_new", CKEY, KM_PRESS, 0, 0); + outliner_item_drag_drop_modal_keymap(keyconf); } |