[Bf-blender-cvs] [982a80e6d85] master: UI: Add rename to object and bone context menus

William Reynish noreply at git.blender.org
Tue Mar 26 14:36:16 CET 2019


Commit: 982a80e6d85f15bfef4410153c70e470bd073334
Author: William Reynish
Date:   Tue Mar 26 14:36:15 2019 +0100
Branches: master
https://developer.blender.org/rB982a80e6d85f15bfef4410153c70e470bd073334

UI: Add rename to object and bone context menus

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

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

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

diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py
index 55e75441d52..314908f171f 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -1962,6 +1962,12 @@ class VIEW3D_MT_object_context_menu(Menu):
 
         layout.separator()
 
+        props = layout.operator("wm.call_panel", text="Rename Active Object...")
+        props.name = "TOPBAR_PT_name"
+        props.keep_open = False
+
+        layout.separator()
+
         layout.operator("view3d.copybuffer", text="Copy Objects", icon='COPYDOWN')
         layout.operator("view3d.pastebuffer", text="Paste Objects", icon='PASTEDOWN')
 
@@ -2772,6 +2778,12 @@ class VIEW3D_MT_pose_context_menu(Menu):
 
         layout.separator()
 
+        props = layout.operator("wm.call_panel", text="Rename Active Bone...")
+        props.name = "TOPBAR_PT_name"
+        props.keep_open = False
+
+        layout.separator()
+
         layout.operator("pose.paths_calculate", text="Calculate")
         layout.operator("pose.paths_clear", text="Clear")



More information about the Bf-blender-cvs mailing list