From dfe6459d8861179186eb0dadaf83a01a8d232c2a Mon Sep 17 00:00:00 2001 From: Patrick Dulebohn Date: Tue, 31 Aug 2021 15:58:31 -0400 Subject: [PATCH] Small runtime fix Fixes a few items with runtime lighting and lightmapping --- korman/exporter/material.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/korman/exporter/material.py b/korman/exporter/material.py index f931b78..20732e0 100644 --- a/korman/exporter/material.py +++ b/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