]> git.tdb.fi Git - libs/gl.git/blobdiff - blender/io_mspgl/export_object.py
Use mesh as the task object when exporting it
[libs/gl.git] / blender / io_mspgl / export_object.py
index d78f5fcd27fd1d266e705e286ed1b8ec3c805bc1..476927af733619b7ed9754ef3f18f71eae593b4a 100644 (file)
@@ -1,5 +1,4 @@
 import os
-import mathutils
 
 class ObjectExporter:
        def collect_object_lods(self, obj):
@@ -63,7 +62,7 @@ class ObjectExporter:
 
                        mesh_name = l.data.name+".mesh"
                        if mesh_name not in resources:
-                               subtask = task.task(l, 1.0)
+                               subtask = task.task(l.data, 1.0)
                                mesh = create_mesh_from_object(subtask, l, material_atlas)
                                mesh_res = mesh_export.export_mesh(subtask, mesh)
                                resources[mesh_name] = mesh_res