resources = {}
data_exporter.export_resources(context, scene.prototypes, resources, None, progress)
- scene_res = self.export_scene(scene, resources, progress)
+ scene_res = self.export_scene(scene, resources)
refs = scene_res.collect_references()
+ progress.set_progress(1.0)
if self.collection:
existing = None
for r in refs:
r.write_to_file(os.path.join(path, r.name))
- def export_scene(self, scene, resources, progress):
+ def export_scene(self, scene, resources):
from .datafile import Resource, Statement, Token
scene_res = Resource(scene.name+".scene", "scene")
st.sub.append(ss)
scene_res.statements.append(st)
- progress.set_progress(1.0)
-
return scene_res