diff options
Diffstat (limited to 'collada_superbmd_export.py')
-rw-r--r-- | collada_superbmd_export.py | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/collada_superbmd_export.py b/collada_superbmd_export.py index 27d63c7..5d6f83f 100644 --- a/collada_superbmd_export.py +++ b/collada_superbmd_export.py @@ -103,24 +103,6 @@ def write_bmd_bdl_collada(context, filepath, triangulate): armature.children[i].name = child_names[i] armature.children[i].data.name = child_names[i] - # store the new bind_mat and rest_mat (the user might want to update them) - for data_bone in armature.data.bones: - # related pose bone - pose_bone = armature.pose.bones[data_bone.name] - # bind matrix - bpy.data.armatures[armature.data.name].pose_position = 'REST' - bpy.context.scene.update() # update scene - blender_funcs.set_bone_bind_mat(data_bone, pose_bone.matrix) - # rest matrix - bpy.data.armatures[armature.data.name].pose_position = 'POSE' - bpy.context.scene.update() # update scene - mat = None - if (pose_bone.parent != None): - mat = pose_bone.parent.matrix.inverted() * pose_bone.matrix - else: - mat = pose_bone.matrix - blender_funcs.set_bone_rest_mat(data_bone, mat) - # export the object bpy.ops.wm.collada_export(filepath = filepath, use_blender_profile = False, selected = True, include_children = True, |