Browse Source

Merge pull request #288 from DoobesURU/RuntimeMtlFix

Small runtime fix
pull/293/head v0.12
Adam Johnson 3 years ago committed by GitHub
parent
commit
87bb7b97fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      korman/exporter/material.py

2
korman/exporter/material.py

@ -1320,7 +1320,7 @@ class MaterialConverter:
# we'll want black if it's ONLY runtime lighting (and white for lightmaps). Otherwise,
# just use the material color for now.
if self._exporter().mesh.is_nonpreshaded(bo, bm):
if bo.plasma_modifiers.lightmap.bake_lightmap:
if bo.plasma_modifiers.lightmap.bake_lightmap and not bo.plasma_modifiers.lighting.rt_lights:
return hsColorRGBA.kWhite
elif not bo.plasma_modifiers.lighting.preshade:
return hsColorRGBA.kBlack

Loading…
Cancel
Save