Browse Source

Only set runtime colors to black if we are not preshading.

Otherwise, what we wind up doing is making it pretty much impossible for
RT lights to affect objects with kLiteMaterial.
pull/230/head
Adam Johnson 4 years ago
parent
commit
172d8083aa
Signed by: Hoikas
GPG Key ID: 0B6515D6FF6F271E
  1. 2
      korman/exporter/material.py

2
korman/exporter/material.py

@ -1184,7 +1184,7 @@ class MaterialConverter:
return utils.color(color)
def get_material_runtime(self, bo, bm, color=None) -> hsColorRGBA:
if not bo.plasma_modifiers.lighting.rt_lights:
if not bo.plasma_modifiers.lighting.preshade:
return hsColorRGBA.kBlack
if color is None:
color = bm.diffuse_color

Loading…
Cancel
Save