summaryrefslogtreecommitdiff
path: root/collada_bmd_bdl_export.py
diff options
context:
space:
mode:
Diffstat (limited to 'collada_bmd_bdl_export.py')
-rw-r--r--collada_bmd_bdl_export.py5
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)