X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=blender%2Fio_mspgl%2Fexport_object.py;h=68a8e93823737c5d695d3065978c30deb3c5ce76;hb=c3ebbcb56c1ca9bb3022a7f49aab1da5e09150ba;hp=541572f5da9c309d047215d1e6f2f286147d48bd;hpb=5bf3c7175c359ad8509702a4e0790609b39e6aec;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: