UI: Add Rename operator in bone collection context menu

Operator to rename tree view item already exists: `UI_OT_view_item_rename`
Add this in context menu as discussed in !120003

Pull Request: https://projects.blender.org/blender/blender/pulls/120086
This commit is contained in:
Pratik Borhade
2024-04-10 13:09:32 +02:00
committed by Pratik Borhade
parent 01ee34ebd1
commit 5bc033b4d7

View File

@@ -182,6 +182,8 @@ class ARMATURE_MT_collection_tree_context_menu(Menu):
layout.operator("armature.collection_select", text="Select Bones")
layout.operator("armature.collection_deselect", text="Deselect Bones")
layout.separator()
layout.operator("UI_OT_view_item_rename", text="Rename")
class DATA_PT_iksolver_itasc(ArmatureButtonsPanel, Panel):
bl_label = "Inverse Kinematics"