|
|
@ -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 = [] |
|
|
|