Browse Source

Merge pull request #91 from dpogue/blend-flag

Don't set multiple exclusive blend flags
pull/85/head
Adam Johnson 7 years ago committed by GitHub
parent
commit
b81eeb73ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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