python pose_channels -> bones
[blender.git] / release / scripts / ui / properties_data_bone.py
index 2a93f4f4b63797357fd348944c2f030674998934..cd1ccd6046438777a83ba0830df6f1936cb3cb55 100644 (file)
@@ -78,7 +78,7 @@ class BONE_PT_transform(BoneButtonsPanel):
                 col.itemR(bone, "locked")
 
         else:
-            pchan = ob.pose.pose_channels[context.bone.name]
+            pchan = ob.pose.bones[context.bone.name]
 
             if col2:
                 row = layout.row()
@@ -128,7 +128,7 @@ class BONE_PT_transform_locks(BoneButtonsPanel):
 
         ob = context.object
         bone = context.bone
-        pchan = ob.pose.pose_channels[context.bone.name]
+        pchan = ob.pose.bones[context.bone.name]
 
         row = layout.row()
         col = row.column()
@@ -162,7 +162,7 @@ class BONE_PT_relations(BoneButtonsPanel):
             bone = context.edit_bone
             pchan = None
         else:
-            pchan = ob.pose.pose_channels[context.bone.name]
+            pchan = ob.pose.bones[context.bone.name]
 
         split = layout.split()
 
@@ -208,7 +208,7 @@ class BONE_PT_display(BoneButtonsPanel):
             bone = context.edit_bone
             pchan = None
         else:
-            pchan = ob.pose.pose_channels[context.bone.name]
+            pchan = ob.pose.bones[context.bone.name]
 
         if ob and pchan: