]> git.tdb.fi Git - libs/gl.git/blob - blender/io_mspgl/__init__.py
Don't try to apply push constants as uniforms in OpenGL
[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", "datafile", "export", "export_animation",
10         "export_armature", "export_camera", "export_light", "export_material",
11         "export_mesh", "export_object", "export_scene", "export_texture",
12         "material", "mesh", "operators", "properties", "scene", "util")
13
14 if "bpy" in locals():
15         import imp
16         for sub in files:
17                 if sub in locals():
18                         imp.reload(locals()[sub])
19
20 import bpy
21
22 def menu_func_export(self, context):
23         from .operators import ExportMspGLData, ExportMspGLAnimation, ExportMspGLScene, ExportMspGLProject
24         self.layout.operator(ExportMspGLData.bl_idname, text="Msp GL data")
25         self.layout.operator(ExportMspGLAnimation.bl_idname, text="Msp GL animation")
26         self.layout.operator(ExportMspGLScene.bl_idname, text="Msp GL scene")
27         self.layout.operator(ExportMspGLProject.bl_idname, text="Msp GL project")
28
29 def register():
30         from .operators import register_operators
31         register_operators()
32
33         bpy.types.TOPBAR_MT_file_export.append(menu_func_export)
34
35         from .properties import register_properties
36         register_properties()
37
38 def unregister():
39         from .operators import unregister_operators
40         unregister_operators()
41
42         bpy.types.TOPBAR_MT_file_export.remove(menu_func_export)
43
44         from .properties import unregister_properties
45         unregister_properties()