- with open(out_fn, "w") as out_file:
- for s in resource.statements:
- s.write_to_file(out_file)
+ progress.push_task_slice(obj.data.name, i, len(objs))
+ resource = self.export_mesh(context, obj, progress)
+
+ resource.write_to_file(out_fn)
+ progress.pop_task()