Fix for single skin being marked as skingroup

This commit is contained in:
khreathor 2019-01-16 03:08:48 +01:00 committed by Bill Currie
parent 94c3c8c2cb
commit 31fa7a81ef

View file

@ -99,7 +99,7 @@ def make_skin(operator, mdl, mesh):
materials = bpy.context.object.data.materials
for mat in materials:
allNodes = mat.node_tree.nodes
allNodes = list(filter(lambda node: node.type == "TEX_IMAGE", mat.node_tree.nodes))
if len(allNodes) > 1:
skingroup = MDL.Skin()
skingroup.type = 1