X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=blender%2Fio_mspgl%2Fexport_object.py;fp=blender%2Fio_mspgl%2Fexport_object.py;h=68a8e93823737c5d695d3065978c30deb3c5ce76;hb=cfd713763d3944d45abeffd6dbb008d36ee892bf;hp=541572f5da9c309d047215d1e6f2f286147d48bd;hpb=888bbef1f510eece3b37d7a0022d2757bf3b085d;p=libs%2Fgl.git diff --git a/blender/io_mspgl/export_object.py b/blender/io_mspgl/export_object.py index 541572f5..68a8e938 100644 --- a/blender/io_mspgl/export_object.py +++ b/blender/io_mspgl/export_object.py @@ -95,9 +95,9 @@ class ObjectExporter: progress.pop_task() - def export_object_resources(self, context, obj, resources, progress, material_atlass=None): - if material_atlass is None: - material_atlass = {} + def export_object_resources(self, context, obj, resources, progress, material_atlases=None): + if material_atlases is None: + material_atlases = {} lods = self.collect_object_lods(obj) @@ -120,11 +120,11 @@ class ObjectExporter: if not all(atlas_flags) or key_mismatch: raise Exception("Conflicting settings in object materials") - if material_atlas_key in material_atlass: - material_atlas = material_atlass[material_atlas_key] + if material_atlas_key in material_atlases: + material_atlas = material_atlases[material_atlas_key] else: material_atlas = create_material_atlas(context, l.data.materials[0]) - material_atlass[material_atlas_key] = material_atlas + material_atlases[material_atlas_key] = material_atlas tech_name = "{}.tech".format(material_atlas.name) if tech_name not in resources: