srgb_colors = bpy.props.BoolProperty(name="sRGB colors", description="Export material colors as sRGB instead of linear", default=True)
separate_mesh = bpy.props.BoolProperty(name="Separate mesh", description="Write mesh data into a separate file", default=False)
+ shared_mesh = bpy.props.BoolProperty(name="Shared mesh", description="Use mesh name for mesh file to enable sharing", default=True)
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()
col = self.general_col
col.prop(self, "external_tech")
+ col.prop(self, "export_lods")
col = self.texturing_col
col.prop(self, "textures")
col = self.layout.column()
col.label("Files")
col.prop(self, "separate_mesh")
+ if self.separate_mesh:
+ col.prop(self, "shared_mesh")
col.prop(self, "separate_tech")
if self.separate_tech:
col.prop(self, "shared_tech")
self.layout.operator(ExportMspGLArmature.bl_idname, text="Msp GL armature")
self.layout.operator(ExportMspGLScene.bl_idname, text="Msp GL scene")
-from .properties import MspGLProperties
+from .properties import MspGLMeshProperties, MspGLObjectProperties
def register():
bpy.utils.register_module(__name__)