From bc1675de82ea5c4a07bea4c5afa9c59c497464d2 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sat, 13 Feb 2021 17:34:47 +0200 Subject: [PATCH] Use the right property when collecting materials for a material map --- blender/io_mspgl/material.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.45.2