]> git.tdb.fi Git - libs/gl.git/blobdiff - blender/io_mspgl/__init__.py
Add an option to skip existing resources when exporting a scene
[libs/gl.git] / blender / io_mspgl / __init__.py
index 3ce60c4c0a91864b9001eaeda21b95eba942be75..4c5fa8c22ce735f4322396ed01e120ee0827e14e 100644 (file)
@@ -131,7 +131,10 @@ class ExportMspGLScene(bpy.types.Operator, ExportMspGLBase):
 
        filename_ext = ".scene"
 
+       selected_only = bpy.props.BoolProperty(name="Selected objects only", description="Only export the selected objects")
+       active_layers = bpy.props.BoolProperty(name="Active layers only", description="Only export objects on the active layers", default=True)
        resource_collection = bpy.props.BoolProperty(name="Resource collection", description="Put resources to a single collection file", default=True)
+       skip_existing = bpy.props.BoolProperty(name="Skip existing files", description="Skip resources that already exist as files", default=True)
 
        def create_exporter(self):
                from .export_scene import SceneExporter
@@ -139,7 +142,11 @@ class ExportMspGLScene(bpy.types.Operator, ExportMspGLBase):
 
        def draw(self, context):
                col = self.layout.column()
+               col.prop(self, "selected_only")
+               col.prop(self, "active_layers")
                col.prop(self, "resource_collection")
+               if self.resource_collection:
+                       col.prop(self, "skip_existing")
 
 class ExportMspGLCamera(bpy.types.Operator, ExportMspGLBase):
        bl_idname = "export.mspgl_camera"