From: Mikko Rasa Date: Sat, 13 Feb 2021 15:34:47 +0000 (+0200) Subject: Use the right property when collecting materials for a material map X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=bc1675de82ea5c4a07bea4c5afa9c59c497464d2;p=libs%2Fgl.git Use the right property when collecting materials for a material map --- diff --git a/blender/io_mspgl/material.py b/blender/io_mspgl/material.py index ce313174..0c021c22 100644 --- a/blender/io_mspgl/material.py +++ b/blender/io_mspgl/material.py @@ -146,10 +146,10 @@ def create_material_map(context, material): if not material.material_map: raise Exception("Material is not part of a material map") - tech = material.technique + shader = material.shader materials = [] for m in context.blend_data.materials: - if m.material_map and m.technique==tech: + if m.material_map and m.shader==shader: materials.append(m) mat_map = MaterialMap(materials)