From 6d6020753739c7ffea7c00ff2e024a978bfaf3b0 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 21 Mar 2019 00:33:49 +1100 Subject: [PATCH] Fix renaming the pose bone The name from the pose bone needs to be changed in pose mode. --- release/scripts/startup/bl_ui/space_topbar.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/release/scripts/startup/bl_ui/space_topbar.py b/release/scripts/startup/bl_ui/space_topbar.py index 28658141427..148e944c687 100644 --- a/release/scripts/startup/bl_ui/space_topbar.py +++ b/release/scripts/startup/bl_ui/space_topbar.py @@ -1115,10 +1115,10 @@ class TOPBAR_PT_name(Panel): else: if mode == 'POSE' or (mode == 'WEIGHT_PAINT' and context.pose_object): layout.label(text="Bone Name") - item = getattr(context.active_pose_bone, "bone", None) + item = context.active_pose_bone if item: row = row_with_icon(layout, 'BONE_DATA') - row.prop(item, "name", text="", icon='OBJECT_DATA') + row.prop(item, "name", text="") found = True elif mode == 'EDIT_ARMATURE': layout.label(text="Bone Name")