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:
authorWilliam Reynish <billrey@me.com>2019-03-25 15:40:55 +0300
committerWilliam Reynish <billrey@me.com>2019-03-25 15:40:55 +0300
commita6f9e0d6441c3741280bda998e179f2a2da8efe2 (patch)
tree7f56829eed60ba147dffe107c78c64069580a85d /release/scripts
parentc97e29158052ea34baeaca3605d19daf5bae9fdf (diff)
UI: Add Copy/Paste to top level Outliner context menus
Diffstat (limited to 'release/scripts')
-rw-r--r--release/scripts/startup/bl_ui/space_outliner.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/space_outliner.py b/release/scripts/startup/bl_ui/space_outliner.py
index 6d90c24ff99..9282d6a9150 100644
--- a/release/scripts/startup/bl_ui/space_outliner.py
+++ b/release/scripts/startup/bl_ui/space_outliner.py
@@ -194,6 +194,8 @@ class OUTLINER_MT_collection(Menu):
layout.operator("outliner.collection_new", text="New").nested = True
layout.operator("outliner.collection_duplicate", text="Duplicate Collection")
layout.operator("outliner.collection_duplicate_linked", text="Duplicate Linked")
+ layout.operator("outliner.id_copy", text="Copy", icon='COPYDOWN')
+ layout.operator("outliner.id_paste", text="Paste", icon='PASTEDOWN')
layout.separator()
@@ -237,6 +239,7 @@ class OUTLINER_MT_collection_new(Menu):
layout = self.layout
layout.operator("outliner.collection_new", text="New").nested = False
+ layout.operator("outliner.id_paste", text="Paste", icon='PASTEDOWN')
layout.separator()
@@ -253,6 +256,11 @@ class OUTLINER_MT_object(Menu):
obj = context.active_object
object_mode = 'OBJECT' if obj is None else obj.mode
+ layout.operator("outliner.id_copy", text="Copy", icon='COPYDOWN')
+ layout.operator("outliner.id_paste", text="Paste", icon='PASTEDOWN')
+
+ layout.separator()
+
layout.operator("outliner.object_operation", text="Delete", icon="X").type = 'DELETE'
if space.display_mode == 'VIEW_LAYER' and not space.use_filter_collection: