From 4ae31de59d07936e3e13cab98120b7a0d7d714b8 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Sat, 13 Jun 2015 13:09:19 -0400 Subject: [PATCH] Don't export auto vertex light if there is an LM --- korman/exporter/mesh.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/korman/exporter/mesh.py b/korman/exporter/mesh.py index 599cdf9..1ccad7d 100644 --- a/korman/exporter/mesh.py +++ b/korman/exporter/mesh.py @@ -144,7 +144,7 @@ class MeshConverter: # at home (and actually enjoys reading these lawgs) print(" Bounds and SpaceTree in the saddle") - def _export_geometry(self, mesh, geospans): + def _export_geometry(self, bo, mesh, geospans): _geodatacls = type("_GeoData", (object,), { @@ -160,7 +160,7 @@ class MeshConverter: name = vcol_layer.name.lower() if name in _VERTEX_COLOR_LAYERS: color = vcol_layer.data - elif name == "autocolor" and color is None: + elif name == "autocolor" and color is None and not bo.plasma_modifiers.lightmap.enabled: color = vcol_layer.data elif name == "alpha": alpha = vcol_layer.data @@ -262,7 +262,7 @@ class MeshConverter: geospans = self._export_material_spans(bo, mesh) # Step 2: Export Blender mesh data to Plasma GeometrySpans - self._export_geometry(mesh, geospans) + self._export_geometry(bo, mesh, geospans) # Step 3: Add plGeometrySpans to the appropriate DSpan and create indices _diindices = {}