From 893fb86aa404e765392723b81ec381fb9b0f5e49 Mon Sep 17 00:00:00 2001 From: Darryl Pogue Date: Thu, 28 Dec 2017 19:48:30 -0800 Subject: [PATCH] Don't set multiple exclusive blend flags This causes the layer to just be entirely transparent. --- korman/exporter/material.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/korman/exporter/material.py b/korman/exporter/material.py index 040c341..7ea052a 100644 --- a/korman/exporter/material.py +++ b/korman/exporter/material.py @@ -330,7 +330,7 @@ class MaterialConverter: else: layer_props = texture.plasma_layer layer.opacity = layer_props.opacity / 100 - if layer_props.opacity < 100: + if layer_props.opacity < 100 and not state.blendFlags & hsGMatState.kBlendMask: state.blendFlags |= hsGMatState.kBlendAlpha if layer_props.alpha_halo: state.blendFlags |= hsGMatState.kBlendAlphaTestHigh