for k, v in self.as_keywords().items():
setattr(exporter, k, v)
+ def draw(self, context):
+ col = self.layout.column()
+ col.prop(self, "export_lines")
+ col.prop(self, "compound")
+ col.prop(self, "smoothing")
+ self.layout.separator()
+ col = self.layout.column()
+ col.label("Triangle strips")
+ col.prop(self, "use_strips")
+ col.prop(self, "use_degen_tris")
+ col.prop(self, "max_strip_len")
+ self.layout.separator()
+ col = self.layout.column()
+ col.label("Vertex cache")
+ col.prop(self, "optimize_cache")
+ col.prop(self, "cache_size")
+ self.layout.separator()
+ col = self.layout.column()
+ col.label("TBN vectors")
+ col.prop(self, "tbn_vecs")
+ col.prop(self, "tbn_uvtex")
+
class ExportMspGLMesh(bpy.types.Operator, ExportMspGLBase):
bl_idname = "export_mesh.mspgl_mesh"
bl_label = "Export Msp GL mesh"
super().prepare_exporter(exporter)
exporter.object = True
+ def draw(self, context):
+ super().draw(context)
+ self.layout.separator()
+ col = self.layout.column()
+ col.label("Texturing")
+ col.prop(self, "textures")
+ col.prop(self, "material_tex")
+
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")