From d239f65130e458faff54a0380efec2a158e948ed Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Sun, 3 Apr 2022 20:14:53 -0400 Subject: [PATCH] Fix #316. --- korman/exporter/mesh.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/korman/exporter/mesh.py b/korman/exporter/mesh.py index a8406255..ee215220 100644 --- a/korman/exporter/mesh.py +++ b/korman/exporter/mesh.py @@ -661,7 +661,7 @@ def _export_material_spans(self, bo, mesh, materials): geospan.props |= (plGeometrySpan.kWaterHeight | plGeometrySpan.kLiteVtxNonPreshaded | plGeometrySpan.kPropReverseSort | plGeometrySpan.kPropNoShadow) geospan.waterHeight = bo.matrix_world.translation[2] - return [_GeoSpan(bo, blmat, geospan)], None + return [_GeoSpan(bo, blmat, geospan, blmat.pass_index)], None else: geospans = [None] * len(materials) mat2span_LUT = {}