if "bpy" in locals():
import imp
- for sub in "armature", "export_armature", "export_mesh", "export_object", "export_scene", "mesh", "outfile", "properties", "util":
+ for sub in "armature", "datafile", "export_armature", "export_mesh", "export_object", "export_scene", "mesh", "properties", "util":
if sub in locals():
imp.reload(locals()[sub])
def execute(self, context):
exporter = self.create_exporter()
self.prepare_exporter(exporter)
- exporter.export(context, self.filepath)
+ exporter.export_to_file(context, self.filepath)
return {"FINISHED"}
def create_exporter(self):