python pose_channels -> bones
[blender.git] / release / scripts / io / import_anim_bvh.py
index dff9a3ac0c8eabdf53f0be280073e2ad2b486881..8185785d1b2f5fee7c56c55cc60db719cb1b6718 100644 (file)
@@ -460,7 +460,7 @@ def bvh_node_dict2armature(context, bvh_nodes, IMPORT_START_FRAME= 1, IMPORT_LOO
        bpy.ops.object.mode_set(mode='POSE', toggle=False)
        
        pose= arm_ob.pose
-       pose_bones= pose.pose_channels
+       pose_bones= pose.bones
        
        
        if ROT_STYLE=='NATIVE':