UI: Add rename to object and bone context menus

This commit is contained in:
William Reynish
2019-03-26 14:36:15 +01:00
parent b2656a6ee4
commit 982a80e6d8

View File

@@ -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")