+bl_info = {
+ "name": "Msp GL format",
+ "author": "Mikko Rasa",
+ "location": "File > Export",
+ "description": "Export Msp GL meshes and objects",
+ "category": "Import-Export" }
+
+if "bpy" in locals():
+ import imp
+ for sub in "export_mspgl", "mesh", "util":
+ if sub in locals():
+ imp.reload(locals()[sub])
+
import bpy
from io_utils import ExportHelper
class ExportMspGL(bpy.types.Operator, ExportHelper):
- bl_idname = "export.mspgl"
+ bl_idname = "export_mesh.mspgl"
bl_label = "Export Msp GL data"
filename_ext = ".mesh"
self.layout.operator(ExportMspGL.bl_idname, text="Msp GL")
def register():
+ bpy.utils.register_module(__name__)
+
bpy.types.INFO_MT_file_export.append(menu_func_export)
+def unregister():
+ bpy.utils.unregister_module(__name__)
+
+ bpy.types.INFO_MT_file_export.remove(menu_func_export)
+
if __name__=="__main__":
register()