- def export_scene(self, context, objs, progress, *, prototypes=None):
- from .datafile import Statement
- statements = []
+ def export_scene_resources(self, context, objs, resources, progress):
+ from .export_object import ObjectExporter
+ object_export = ObjectExporter()
+ object_export.separate_mesh = True
+ object_export.separate_tech = True
+
+ for i, o in enumerate(objs):
+ progress.push_task_slice(o.name, i, len(objs))
+ object_export.export_object_resources(context, o, resources, progress)
+ obj_name = o.name+".object"
+ resources[obj_name] = object_export.export_object(context, o, progress, resources=resources)
+ progress.pop_task()
+
+ def export_scene(self, context, objs, progress, *, prototypes, resources):
+ from .datafile import Resource, Statement
+ scene_res = Resource("scene.scene")