X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=blender%2Fio_mspgl%2F__init__.py;h=d555ab4b30d54e59f48f5453c2612dfef73ec2ba;hp=87aedae5b96d0bd182bce1e54d77da96732097d8;hb=f2cab83d5704f3f4a91f551f402187637e5063d2;hpb=553f3ec4fbe28a37978ee53b9b6e22fedb691e1d diff --git a/blender/io_mspgl/__init__.py b/blender/io_mspgl/__init__.py index 87aedae5..d555ab4b 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_camera", "export_material", "export_mesh", "export_object", "export_scene", "export_texture", "material", "mesh", "properties", "util": + for sub in "animation", "armature", "datafile", "export_animation", "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]) @@ -90,6 +90,16 @@ class ExportMspGLArmature(bpy.types.Operator, ExportMspGLBase): from .export_armature import ArmatureExporter return ArmatureExporter() +class ExportMspGLAnimation(bpy.types.Operator, ExportMspGLBase): + bl_idname = "export.mspgl_animation" + bl_label = "Export Msp GL animation" + + filename_ext = ".anim" + + def create_exporter(self): + from .export_animation import AnimationExporter + return AnimationExporter() + class ExportMspGLScene(bpy.types.Operator, ExportMspGLBase): bl_idname = "export_scene.mspgl_scene" bl_label = "Export Msp GL scene" @@ -120,6 +130,7 @@ 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(ExportMspGLAnimation.bl_idname, text="Msp GL animation") self.layout.operator(ExportMspGLScene.bl_idname, text="Msp GL scene") self.layout.operator(ExportMspGLCamera.bl_idname, text="Msp GL camera")