From b907bcc414eb742f45e2a0c2ea0232256c226a92 Mon Sep 17 00:00:00 2001 From: Isaac Date: Thu, 15 Feb 2024 11:10:17 -0400 Subject: small *fix* for some bones not being imported --- collada_bmd_bdl_export.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'collada_bmd_bdl_export.py') diff --git a/collada_bmd_bdl_export.py b/collada_bmd_bdl_export.py index 4907a73..30bca40 100644 --- a/collada_bmd_bdl_export.py +++ b/collada_bmd_bdl_export.py @@ -2,7 +2,7 @@ just a DAE exporter. it was supposed to only rotate the meshes around the X axis by -90 degrees but above that it now checks for armature and vertex group stuff -only exports what is selected +only exports an armature object selection ''' import bpy, math @@ -101,6 +101,9 @@ def write_bmd_bdl_collada(context, filepath, triangulate): object.select = True scene.objects.active = object + # change mesh to object view (in case it isn't) + bpy.ops.object.mode_set(mode='OBJECT') + # reset scale, rotation and position of the mesh bpy.ops.object.transform_apply(location = True, rotation = True, scale = True) -- cgit v1.2.3-70-g09d2