self.show_progress = True
self.use_strips = True
self.use_degen_tris = False
- self.textures = "REF"
- self.separate_mesh = False
- self.separate_tech = False
+ self.use_textures = True
+ self.single_file = True
self.shared_resources = True
self.export_lods = True
def create_material_exporter(self):
from .export_material import MaterialExporter
material_export = MaterialExporter()
- material_export.textures = self.textures
+ material_export.single_file = self.single_file
+ material_export.use_textures = self.use_textures
return material_export
def export_to_file(self, context, out_fn):
if l.data.name!=prev_mesh:
mesh_res = resources[l.data.name+".mesh"]
- if self.separate_mesh:
+ if not self.single_file:
lod_st.append(obj_res.create_reference_statement("mesh", mesh_res))
else:
lod_st.append(obj_res.create_embed_statement("mesh", mesh_res))
if tech_res.name!=prev_tech:
if material and material.technique and not material.inherit_tech:
lod_st.append(Statement("technique", material.technique))
- elif self.separate_tech:
+ elif not self.single_file:
lod_st.append(obj_res.create_reference_statement("technique", tech_res))
else:
lod_st.append(obj_res.create_embed_statement("technique", tech_res))