python pose_channels -> bones

This commit is contained in:
2009-11-18 11:50:31 +00:00
parent 67c295da9c
commit 49c47fbf30
4 changed files with 10 additions and 11 deletions

View File

@@ -744,7 +744,7 @@ class BONE_PT_inverse_kinematics(ConstraintButtonsPanel):
bone = context.bone
if ob and bone:
pchan = ob.pose.pose_channels[bone.name]
pchan = ob.pose.bones[bone.name]
return pchan.has_ik
return False
@@ -754,7 +754,7 @@ class BONE_PT_inverse_kinematics(ConstraintButtonsPanel):
ob = context.object
bone = context.bone
pchan = ob.pose.pose_channels[bone.name]
pchan = ob.pose.bones[bone.name]
col2 = context.region.width > narrowui
row = layout.row()
@@ -844,7 +844,7 @@ class BONE_PT_iksolver_itasc(ConstraintButtonsPanel):
bone = context.bone
if ob and bone:
pchan = ob.pose.pose_channels[bone.name]
pchan = ob.pose.bones[bone.name]
return pchan.has_ik and ob.pose.ik_solver == 'ITASC' and ob.pose.ik_param
return False
@@ -903,7 +903,7 @@ class BONE_PT_constraints(ConstraintButtonsPanel):
layout = self.layout
ob = context.object
pchan = ob.pose.pose_channels[context.bone.name]
pchan = ob.pose.bones[context.bone.name]
col2 = context.region.width > narrowui
row = layout.row()