[Bf-blender-cvs] [f08910e7b28] master: UI: relocate rename menu item

Campbell Barton noreply at git.blender.org
Wed Mar 20 15:06:32 CET 2019


Commit: f08910e7b28722c76263c0017e81db4d7773337b
Author: Campbell Barton
Date:   Thu Mar 21 01:04:28 2019 +1100
Branches: master
https://developer.blender.org/rBf08910e7b28722c76263c0017e81db4d7773337b

UI: relocate rename menu item

This was in between operator adjust/search.

Also remove line accidentally added in last commit.

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

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

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

diff --git a/release/scripts/startup/bl_ui/space_topbar.py b/release/scripts/startup/bl_ui/space_topbar.py
index e974ebeda5b..0277f6fe129 100644
--- a/release/scripts/startup/bl_ui/space_topbar.py
+++ b/release/scripts/startup/bl_ui/space_topbar.py
@@ -815,13 +815,15 @@ class TOPBAR_MT_edit(Menu):
 
         layout.separator()
 
+        layout.operator("wm.search_menu", text="Operator Search...", icon='VIEWZOOM')
+
+        layout.separator()
+
         # Mainly to expose shortcut since this depends on the context.
         props = layout.operator("wm.call_panel", text="Rename Active Item...", icon='OUTLINER_DATA_FONT')
         props.name = "TOPBAR_PT_name"
         props.keep_open = False
 
-        layout.operator("wm.search_menu", text="Operator Search...", icon='VIEWZOOM')
-
         layout.separator()
 
         # Should move elsewhere (impacts outliner & 3D view).
@@ -1133,7 +1135,6 @@ class TOPBAR_PT_name(Panel):
                 if item:
                     row = row_with_icon(layout, 'OBJECT_DATA')
                     row.prop(item, "name", text="")
-                    row.prop(item.data, "name", text="")
                     found = True
 
         if not found:



More information about the Bf-blender-cvs mailing list