col.prop(self, "compound")
col.prop(self, "smoothing")
col.prop(self, "export_groups")
+ self.general_col = col
self.layout.separator()
filename_ext = ".object"
+ external_tech = bpy.props.BoolProperty(name="External technique", description="Use an external technique specified in the object", default=True)
+
textures = bpy.props.EnumProperty(name="Textures", description="Export textures", default="REF",
items=(("NONE", "None", "Ignore textures"),
("REF", "Referenced", "Reference external data"),
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)
+ 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)
def create_exporter(self):
from .export_object import ObjectExporter
def draw(self, context):
super().draw(context)
+ col = self.general_col
+ col.prop(self, "external_tech")
+
col = self.texturing_col
col.prop(self, "textures")
col.prop(self, "material_tex")
col = self.layout.column()
col.label("Files")
col.prop(self, "separate_mesh")
+ col.prop(self, "separate_tech")
+ if self.separate_tech:
+ col.prop(self, "shared_tech")
class ExportMspGLArmature(bpy.types.Operator, ExportMspGLBase):
bl_idname = "export.mspgl_armature"