X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=blender%2Fio_mspgl%2Fexport_object.py;h=810d1cbfe42fc719878dc48580fa5b8b0b9a4083;hp=7918af786a03243af401eb9ae6e6f00146a125ab;hb=35f3540e50fdb9f45cd8e53cbe131610aa030a68;hpb=d5b484e2aee6c485abd4d07631f6d863eaaa90a0 diff --git a/blender/io_mspgl/export_object.py b/blender/io_mspgl/export_object.py index 7918af78..810d1cbf 100644 --- a/blender/io_mspgl/export_object.py +++ b/blender/io_mspgl/export_object.py @@ -34,7 +34,6 @@ class ObjectExporter: self.separate_mesh = False self.shared_mesh = True self.separate_tech = False - self.external_tech = True self.shared_tech = True self.export_lods = True @@ -80,7 +79,7 @@ class ObjectExporter: mat = l.material_slots[0].material.name if mat!=prev_tech[1]: same_tech = False - if self.external_tech and l.technique!=prev_tech[0]: + if l.technique!=prev_tech[0]: same_tech = False if i==0 or not same_tech: self.export_object_technique(l, mesh, out_file, i) @@ -122,7 +121,7 @@ class ObjectExporter: from .outfile import open_output path, name = external_name(out_file, ".tech", lod_index) - if self.external_tech and obj.technique: + if obj.technique: if obj.inherit_tech and material and (obj.override_material or material.texture_slots): out_file.begin("technique") out_file.begin("inherit", '"{}"'.format(obj.technique))