]> git.tdb.fi Git - libs/gl.git/commitdiff
Use mesh as the task object when exporting it
authorMikko Rasa <tdb@tdb.fi>
Fri, 11 Mar 2022 21:43:54 +0000 (23:43 +0200)
committerMikko Rasa <tdb@tdb.fi>
Fri, 11 Mar 2022 21:43:54 +0000 (23:43 +0200)
blender/io_mspgl/export_object.py

index c79d7d0e0b84abb31fa386305ed2be067e69d9af..476927af733619b7ed9754ef3f18f71eae593b4a 100644 (file)
@@ -62,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