[Bf-blender-cvs] [6d602075373] master: Fix renaming the pose bone
Campbell Barton
noreply at git.blender.org
Wed Mar 20 14:35:46 CET 2019
Commit: 6d6020753739c7ffea7c00ff2e024a978bfaf3b0
Author: Campbell Barton
Date: Thu Mar 21 00:33:49 2019 +1100
Branches: master
https://developer.blender.org/rB6d6020753739c7ffea7c00ff2e024a978bfaf3b0
Fix renaming the pose bone
The name from the pose bone needs to be changed in pose mode.
===================================================================
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 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")
More information about the Bf-blender-cvs
mailing list