Browse Source

Small runtime fix

Fixes a few items with runtime lighting and lightmapping
pull/288/head
Patrick Dulebohn 3 years ago
parent
commit
dfe6459d88
  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, # we'll want black if it's ONLY runtime lighting (and white for lightmaps). Otherwise,
# just use the material color for now. # just use the material color for now.
if self._exporter().mesh.is_nonpreshaded(bo, bm): 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 return hsColorRGBA.kWhite
elif not bo.plasma_modifiers.lighting.preshade: elif not bo.plasma_modifiers.lighting.preshade:
return hsColorRGBA.kBlack return hsColorRGBA.kBlack

Loading…
Cancel
Save