]> git.tdb.fi Git - libs/gl.git/blobdiff - blender/io_mspgl/__init__.py
Allow bounding sphere hints for objects and export such from Blender
[libs/gl.git] / blender / io_mspgl / __init__.py
index b7e14fdad19d0bae3ae027c31f67fb6f87ed38a4..2c9d8f721a6bb7cec65d04a9159933ffadc5ff64 100644 (file)
@@ -15,6 +15,8 @@ import bpy
 from bpy_extras.io_utils import ExportHelper
 
 class ExportMspGLBase(ExportHelper):
+       show_progress = bpy.props.BoolProperty(name="Show progress", description="Display progress indicator while exporting", default=True)
+
        def execute(self, context):
                exporter = self.create_exporter()
                self.prepare_exporter(exporter)
@@ -109,6 +111,8 @@ class ExportMspGLObject(bpy.types.Operator, ExportMspGLMeshBase):
        separate_tech = bpy.props.BoolProperty(name="Separate technique", description="Write technique data into a separate file", default=False)
        shared_tech = bpy.props.BoolProperty(name="Shared technique", description="Use material name for technique file to enable sharing", default=True)
 
+       export_lods = bpy.props.BoolProperty(name="Export LoDs", description="Export all levels of detail", default=True)
+
        def create_exporter(self):
                from .export_object import ObjectExporter
                return ObjectExporter()
@@ -118,6 +122,7 @@ class ExportMspGLObject(bpy.types.Operator, ExportMspGLMeshBase):
 
                col = self.general_col
                col.prop(self, "external_tech")
+               col.prop(self, "export_lods")
 
                col = self.texturing_col
                col.prop(self, "textures")
@@ -144,7 +149,7 @@ class ExportMspGLArmature(bpy.types.Operator, ExportMspGLBase):
                return ArmatureExporter()
 
 class ExportMspGLScene(bpy.types.Operator, ExportMspGLBase):
-       bl_idname = "export.mspgl_scene"
+       bl_idname = "export_scene.mspgl_scene"
        bl_label = "Export Msp GL scene"
 
        filename_ext = ".scene"