Browse Source

Don't set multiple exclusive blend flags

This causes the layer to just be entirely transparent.
pull/91/head
Darryl Pogue 7 years ago
parent
commit
893fb86aa4
No known key found for this signature in database
GPG Key ID: CB824715C3E6FD41
  1. 2
      korman/exporter/material.py

2
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

Loading…
Cancel
Save