def __init__(self):
self.textures = "REF"
self.separate_mesh = False
- self.shared_mesh = True
self.separate_tech = False
- self.shared_tech = True
+ self.shared_resources = True
self.export_lods = True
def export(self, context, out_file, obj=None, progress=None):
if self.separate_mesh:
from .outfile import open_output
path, name = external_name(out_file, ".mesh", lod_index)
- if self.shared_mesh:
+ if self.shared_resources:
name = obj.data.name+".mesh"
mesh_out = open_output(os.path.join(path, name))
mesh = mesh_export.export(context, mesh_out, obj, progress)
else:
out_file.write("technique", '"{}"'.format(obj.technique))
elif self.separate_tech:
- if self.shared_tech and material:
+ if self.shared_resources and material:
name = material.name+".tech"
tech_out = open_output(os.path.join(path, name))
self.export_technique_definition(material, tech_out)