]> git.tdb.fi Git - libs/gl.git/blobdiff - blender/io_mspgl/__init__.py
Redesign file writing in the Blender exporter
[libs/gl.git] / blender / io_mspgl / __init__.py
index 724d625be566ee853f7a3f44836c32f34a885e10..30dc6406402c328efbba1f02ac70ccea2ec2aaab 100644 (file)
@@ -7,7 +7,7 @@ bl_info = {
 
 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])
 
@@ -20,7 +20,7 @@ class ExportMspGLBase(ExportHelper):
        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):