[Bf-blender-cvs] [51b26228149] blender2.8: UI: move copy/paste into the object menu

Campbell Barton noreply at git.blender.org
Fri May 25 08:21:50 CEST 2018


Commit: 51b26228149b232c8f6940c7d6664e040487bc25
Author: Campbell Barton
Date:   Fri May 25 08:16:24 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB51b26228149b232c8f6940c7d6664e040487bc25

UI: move copy/paste into the object menu

We already have per mode copy/paste in mode specific menus.

===================================================================

M	release/scripts/startup/bl_ui/space_topbar.py
M	release/scripts/startup/bl_ui/space_view3d.py

===================================================================

diff --git a/release/scripts/startup/bl_ui/space_topbar.py b/release/scripts/startup/bl_ui/space_topbar.py
index 7fc36d5d447..53acc29dfad 100644
--- a/release/scripts/startup/bl_ui/space_topbar.py
+++ b/release/scripts/startup/bl_ui/space_topbar.py
@@ -610,11 +610,6 @@ class INFO_MT_edit(Menu):
 
         layout.separator()
 
-        layout.operator("view3d.copybuffer", text="Copy Objects", icon='COPYDOWN')
-        layout.operator("view3d.pastebuffer", text="Paste Objects", icon='PASTEDOWN')
-
-        layout.separator()
-
         layout.operator("screen.userpref_show", text="User Preferences...", icon='PREFERENCES')
 
 
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py
index c93b564bc6b..e45a6f2bcb8 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -1380,16 +1380,17 @@ class VIEW3D_MT_object(Menu):
 
         layout.separator()
 
-        layout.operator("object.shade_smooth", text="Smooth Shading")
-        layout.operator("object.shade_flat", text="Flat Shading")
-
-        layout.separator()
-
         layout.operator("object.duplicate_move")
         layout.operator("object.duplicate_move_linked")
         layout.operator("object.join")
 
         layout.separator()
+
+        layout.operator("view3d.copybuffer", text="Copy Objects")
+        layout.operator("view3d.pastebuffer", text="Paste Objects")
+
+        layout.separator()
+
         layout.menu("VIEW3D_MT_object_parent")
         layout.menu("VIEW3D_MT_object_collection")
         layout.menu("VIEW3D_MT_object_relations")
@@ -1399,6 +1400,11 @@ class VIEW3D_MT_object(Menu):
 
         layout.separator()
 
+        layout.operator("object.shade_smooth", text="Smooth Shading")
+        layout.operator("object.shade_flat", text="Flat Shading")
+
+        layout.separator()
+
         layout.menu("VIEW3D_MT_object_animation")
         layout.menu("VIEW3D_MT_object_rigid_body")



More information about the Bf-blender-cvs mailing list