diff options
author | Isaac <isaclien9752@gmail.com> | 2024-02-15 11:10:17 -0400 |
---|---|---|
committer | Isaac <isaclien9752@gmail.com> | 2024-02-15 11:10:17 -0400 |
commit | b907bcc414eb742f45e2a0c2ea0232256c226a92 (patch) | |
tree | fde04737c0c797e9d0b7bf37d1bce69570ba20ad /collada_bmd_bdl_export.py | |
parent | dac44c77fa7442fbae53795a8bde09bcd587f60d (diff) | |
download | blenxy-b907bcc414eb742f45e2a0c2ea0232256c226a92.tar.gz blenxy-b907bcc414eb742f45e2a0c2ea0232256c226a92.zip |
small *fix* for some bones not being imported
Diffstat (limited to 'collada_bmd_bdl_export.py')
-rw-r--r-- | collada_bmd_bdl_export.py | 5 |
1 files changed, 4 insertions, 1 deletions
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) |