[Bf-blender-cvs] [a6f9e0d6441] master: UI: Add Copy/Paste to top level Outliner context menus
William Reynish
noreply at git.blender.org
Mon Mar 25 13:40:57 CET 2019
Commit: a6f9e0d6441c3741280bda998e179f2a2da8efe2
Author: William Reynish
Date: Mon Mar 25 13:40:55 2019 +0100
Branches: master
https://developer.blender.org/rBa6f9e0d6441c3741280bda998e179f2a2da8efe2
UI: Add Copy/Paste to top level Outliner context menus
===================================================================
M release/scripts/startup/bl_ui/space_outliner.py
===================================================================
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:
More information about the Bf-blender-cvs
mailing list