From 61b0178e0574f0a92cb88eaab1a8cbeccabe32f1 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Wed, 28 Jul 2021 15:16:33 -0400 Subject: [PATCH] Fix spurious autocolor generation. --- korman/exporter/etlight.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/korman/exporter/etlight.py b/korman/exporter/etlight.py index a79aba5..8f7b79f 100644 --- a/korman/exporter/etlight.py +++ b/korman/exporter/etlight.py @@ -254,11 +254,7 @@ class LightBaker(_MeshManager): bake_pass = bake.setdefault(key, []) bake_pass.append(i) elif mods.lighting.preshade: - vcols = i.data.vertex_colors - for j in _VERTEX_COLOR_LAYERS: - if j in vcols: - break - else: + if not any((vcol_layer.name.lower() in _VERTEX_COLOR_LAYERS for vcol_layer in i.data.vertex_colors)): bake_vcol.append(i) return bake