]> git.tdb.fi Git - libs/gl.git/blob - blender/io_mspgl/__init__.py
Check the flat qualifier from the correct member
[libs/gl.git] / blender / io_mspgl / __init__.py
1 bl_info = {
2         "name": "Msp GL datafiles",
3         "blender": (2, 80, 0),
4         "author": "Mikko Rasa",
5         "location": "File > Export",
6         "description": "Export Msp GL data",
7         "category": "Import-Export" }
8
9 files = ("animation", "armature", "context", "datafile", "export",
10         "export_animation", "export_armature", "export_camera", "export_light",
11         "export_material", "export_mesh", "export_object", "export_scene",
12         "export_texture", "material", "mesh", "operators", "properties", "scene",
13         "texture", "util")
14
15 if "bpy" in locals():
16         import imp
17         for sub in files:
18                 if sub in locals():
19                         imp.reload(locals()[sub])
20
21 import bpy
22
23 def menu_func_export(self, context):
24         from .operators import ExportMspGLData, ExportMspGLAnimation, ExportMspGLScene, ExportMspGLProject
25         self.layout.operator(ExportMspGLData.bl_idname, text="Msp GL data")
26         self.layout.operator(ExportMspGLAnimation.bl_idname, text="Msp GL animation")
27         self.layout.operator(ExportMspGLScene.bl_idname, text="Msp GL scene")
28         self.layout.operator(ExportMspGLProject.bl_idname, text="Msp GL project")
29
30 def register():
31         from .operators import register_operators
32         register_operators()
33
34         bpy.types.TOPBAR_MT_file_export.append(menu_func_export)
35
36         from .properties import register_properties
37         register_properties()
38
39 def unregister():
40         from .operators import unregister_operators
41         unregister_operators()
42
43         bpy.types.TOPBAR_MT_file_export.remove(menu_func_export)
44
45         from .properties import unregister_properties
46         unregister_properties()