X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=blender%2Fio_mspgl%2F__init__.py;h=87aedae5b96d0bd182bce1e54d77da96732097d8;hp=905bfe73b6f52fbeda10ab1c172b652117a68bbf;hb=2f20c5941aef604c5a49eecebec0fb7f2d2f6dbd;hpb=6e0a6f7a7a406bd22eb4e3f7fc4bf2bdce01d7f9 diff --git a/blender/io_mspgl/__init__.py b/blender/io_mspgl/__init__.py index 905bfe73..87aedae5 100644 --- a/blender/io_mspgl/__init__.py +++ b/blender/io_mspgl/__init__.py @@ -7,7 +7,7 @@ bl_info = { if "bpy" in locals(): import imp - for sub in "armature", "datafile", "export_armature", "export_material", "export_mesh", "export_object", "export_scene", "export_texture", "material", "mesh", "properties", "util": + for sub in "armature", "datafile", "export_armature", "export_camera", "export_material", "export_mesh", "export_object", "export_scene", "export_texture", "material", "mesh", "properties", "util": if sub in locals(): imp.reload(locals()[sub]) @@ -106,11 +106,22 @@ class ExportMspGLScene(bpy.types.Operator, ExportMspGLBase): col = self.layout.column() col.prop(self, "resource_collection") +class ExportMspGLCamera(bpy.types.Operator, ExportMspGLBase): + bl_idname = "export.mspgl_camera" + bl_label = "Export Msp GL camera" + + filename_ext = ".camera" + + def create_exporter(self): + from .export_camera import CameraExporter + return CameraExporter() + def menu_func_export(self, context): self.layout.operator(ExportMspGLMesh.bl_idname, text="Msp GL mesh") self.layout.operator(ExportMspGLObject.bl_idname, text="Msp GL object") self.layout.operator(ExportMspGLArmature.bl_idname, text="Msp GL armature") self.layout.operator(ExportMspGLScene.bl_idname, text="Msp GL scene") + self.layout.operator(ExportMspGLCamera.bl_idname, text="Msp GL camera") from .properties import MspGLMeshProperties, MspGLObjectProperties