mirror of
https://github.com/H-uru/korman.git
synced 2025-07-15 10:54:18 +00:00
Don't export auto vertex light if there is an LM
This commit is contained in:
@ -144,7 +144,7 @@ class MeshConverter:
|
|||||||
# at home (and actually enjoys reading these lawgs)
|
# at home (and actually enjoys reading these lawgs)
|
||||||
print(" Bounds and SpaceTree in the saddle")
|
print(" Bounds and SpaceTree in the saddle")
|
||||||
|
|
||||||
def _export_geometry(self, mesh, geospans):
|
def _export_geometry(self, bo, mesh, geospans):
|
||||||
_geodatacls = type("_GeoData",
|
_geodatacls = type("_GeoData",
|
||||||
(object,),
|
(object,),
|
||||||
{
|
{
|
||||||
@ -160,7 +160,7 @@ class MeshConverter:
|
|||||||
name = vcol_layer.name.lower()
|
name = vcol_layer.name.lower()
|
||||||
if name in _VERTEX_COLOR_LAYERS:
|
if name in _VERTEX_COLOR_LAYERS:
|
||||||
color = vcol_layer.data
|
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
|
color = vcol_layer.data
|
||||||
elif name == "alpha":
|
elif name == "alpha":
|
||||||
alpha = vcol_layer.data
|
alpha = vcol_layer.data
|
||||||
@ -262,7 +262,7 @@ class MeshConverter:
|
|||||||
geospans = self._export_material_spans(bo, mesh)
|
geospans = self._export_material_spans(bo, mesh)
|
||||||
|
|
||||||
# Step 2: Export Blender mesh data to Plasma GeometrySpans
|
# 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
|
# Step 3: Add plGeometrySpans to the appropriate DSpan and create indices
|
||||||
_diindices = {}
|
_diindices = {}
|
||||||
|
Reference in New Issue
Block a user