Browse Source

Merge pull request #88 from dpogue/blend-fix

Fix Span/BlendSpan discriminator
pull/90/head
Adam Johnson 7 years ago committed by GitHub
parent
commit
ed1da6e86a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      korman/exporter/mesh.py

9
korman/exporter/mesh.py

@ -70,14 +70,9 @@ class _RenderLevel:
class _DrawableCriteria: class _DrawableCriteria:
def __init__(self, bo, hsgmat, pass_index): def __init__(self, bo, hsgmat, pass_index):
for layer in hsgmat.layers: self.blend_span = hsgmat.layers[0].object.state.blendFlags & hsGMatState.kBlendMask
if layer.object.state.blendFlags & hsGMatState.kBlendMask:
self.blend_span = True
break
else:
self.blend_span = False
self.criteria = 0 self.criteria = 0
if self.blend_span: if self.blend_span:
for mod in bo.plasma_modifiers.modifiers: for mod in bo.plasma_modifiers.modifiers:
if mod.requires_face_sort: if mod.requires_face_sort:

Loading…
Cancel
Save