Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-03-20 16:33:49 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-03-20 16:34:19 +0300
commit6d6020753739c7ffea7c00ff2e024a978bfaf3b0 (patch)
tree116b89a4407d4c8515942ba311f749e54ffaacab /release
parent91914320ca539dfbbd3e417a42387fd6ec6182df (diff)
Fix renaming the pose bone
The name from the pose bone needs to be changed in pose mode.
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/space_topbar.py4
1 files 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")