[Bf-blender-cvs] [37d09827c60] blender2.8: Fix T59112: bone pinning error
Philipp Oeser
noreply at git.blender.org
Mon Dec 17 15:20:09 CET 2018
Commit: 37d09827c607b33174277c1d7860d5290312bb0d
Author: Philipp Oeser
Date: Mon Dec 10 11:26:37 2018 +0100
Branches: blender2.8
https://developer.blender.org/rB37d09827c607b33174277c1d7860d5290312bb0d
Fix T59112: bone pinning error
Reviewers: angavrilov, brecht
Maniphest Tasks: T59112
Differential Revision: https://developer.blender.org/D4057
===================================================================
M release/scripts/startup/bl_ui/properties_data_bone.py
===================================================================
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):
More information about the Bf-blender-cvs
mailing list