Browse Source

Fix #292.

pull/315/head
Adam Johnson 3 years ago
parent
commit
95879a6873
Signed by: Hoikas
GPG Key ID: 0B6515D6FF6F271E
  1. 8
      korman/exporter/mesh.py

8
korman/exporter/mesh.py

@ -410,9 +410,11 @@ class MeshConverter(_MeshManager):
tessface_alphas = (1.0, 1.0, 1.0, 1.0) tessface_alphas = (1.0, 1.0, 1.0, 1.0)
else: else:
src = alpha[i] src = alpha[i]
# average color becomes the alpha value # Some time between 2.79b and 2.80, vertex alpha colors appeared in Blender. However,
tessface_alphas = ((sum(src.color1) / 3), (sum(src.color2) / 3), # there is no way to actually visually edit them. That means that we need to keep that
(sum(src.color3) / 3), (sum(src.color4) / 3)) # fact in mind because we're just averaging the color to make alpha.
tessface_alphas = ((sum(src.color1[:3]) / 3), (sum(src.color2[:3]) / 3),
(sum(src.color3[:3]) / 3), (sum(src.color4[:3]) / 3))
if bumpmap is not None: if bumpmap is not None:
gradPass = [] gradPass = []

Loading…
Cancel
Save