import os
-import mathutils
class ObjectExporter:
def collect_object_lods(self, obj):
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