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:
authorPhilipp Oeser <info@graphics-engineer.com>2018-12-10 13:26:37 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2018-12-17 17:13:29 +0300
commit37d09827c607b33174277c1d7860d5290312bb0d (patch)
tree601fa36ba88c4f6fa12294555a3c15215fc79944 /release/scripts/startup/bl_ui/properties_data_bone.py
parent6dcf788d1222ac6a04b075291a09867810a841e3 (diff)
Fix T59112: bone pinning error
Reviewers: angavrilov, brecht Maniphest Tasks: T59112 Differential Revision: https://developer.blender.org/D4057
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_data_bone.py')
-rw-r--r--release/scripts/startup/bl_ui/properties_data_bone.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/release/scripts/startup/bl_ui/properties_data_bone.py b/release/scripts/startup/bl_ui/properties_data_bone.py
index 781729e0594..3a7f348efa5 100644
--- a/release/scripts/startup/bl_ui/properties_data_bone.py
+++ b/release/scripts/startup/bl_ui/properties_data_bone.py
@@ -128,13 +128,11 @@ class BONE_PT_curved(BoneButtonsPanel, Panel):
def draw(self, context):
ob = context.object
bone = context.bone
- # arm = context.armature
- pchan = None
+ arm = context.armature
bone_list = "bones"
if ob and bone:
- pchan = ob.pose.bones[bone.name]
- bbone = pchan
+ bbone = ob.pose.bones[bone.name]
elif bone is None:
bone = context.edit_bone
bbone = bone
@@ -176,14 +174,14 @@ class BONE_PT_curved(BoneButtonsPanel, Panel):
col = col.column(align=True)
col.active = (bone.bbone_handle_type_start != "AUTO")
- col.prop_search(bone, "bbone_custom_handle_start", ob.data, bone_list, text="Custom")
+ col.prop_search(bone, "bbone_custom_handle_start", arm, bone_list, text="Custom")
col = topcol.column(align=True)
col.prop(bone, "bbone_handle_type_end", text="End Handle")
col = col.column(align=True)
col.active = (bone.bbone_handle_type_end != "AUTO")
- col.prop_search(bone, "bbone_custom_handle_end", ob.data, bone_list, text="Custom")
+ col.prop_search(bone, "bbone_custom_handle_end", arm, bone_list, text="Custom")
class BONE_PT_relations(BoneButtonsPanel, Panel):