From 46fb63ea8d3c33d5cb5914a05998c8f6ff74abea Mon Sep 17 00:00:00 2001 From: Isaac Date: Wed, 15 Jan 2025 13:16:27 -0400 Subject: rm delta transf and custom property usage --- collada_superbmd_export.py | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'collada_superbmd_export.py') 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, -- cgit v1.2.3-70-g09d2