Browse Source

Fix spurious autocolor generation.

pull/261/head
Adam Johnson 3 years ago
parent
commit
61b0178e05
Signed by: Hoikas
GPG Key ID: 0B6515D6FF6F271E
  1. 6
      korman/exporter/etlight.py

6
korman/exporter/etlight.py

@ -254,11 +254,7 @@ class LightBaker(_MeshManager):
bake_pass = bake.setdefault(key, []) bake_pass = bake.setdefault(key, [])
bake_pass.append(i) bake_pass.append(i)
elif mods.lighting.preshade: elif mods.lighting.preshade:
vcols = i.data.vertex_colors if not any((vcol_layer.name.lower() in _VERTEX_COLOR_LAYERS for vcol_layer in i.data.vertex_colors)):
for j in _VERTEX_COLOR_LAYERS:
if j in vcols:
break
else:
bake_vcol.append(i) bake_vcol.append(i)
return bake return bake

Loading…
Cancel
Save