- with open(out_fn, "w") as out_file:
- for s in statements:
- s.write_to_file(out_file)
+ def export_scene_resources(self, context, objs, resources, progress):
+ from .export_object import ObjectExporter
+ object_export = ObjectExporter()
+ object_export.single_file = False
+
+ material_atlases = {}
+
+ for i, o in enumerate(objs):
+ progress.push_task_slice(o.name, i, len(objs))
+ object_export.export_object_resources(context, o, resources, material_atlases, progress)
+ obj_name = o.name+".object"
+ resources[obj_name] = object_export.export_object(context, o, resources, progress)
+ progress.pop_task()