]> git.tdb.fi Git - libs/gl.git/blobdiff - blender/io_mspgl/export_object.py
Combine shared_mesh and shared_tech into a single option
[libs/gl.git] / blender / io_mspgl / export_object.py
index df5d619a9fd1e2548c3520b1820382c6d59d8be1..5a707bad216e0250360fa34e13589af558997030 100644 (file)
@@ -32,9 +32,8 @@ class ObjectExporter:
        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):
@@ -101,7 +100,7 @@ class ObjectExporter:
                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)
@@ -142,7 +141,7 @@ class ObjectExporter:
                        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)