Add test case to ensure terrain layers use swatch colors when no texture is found

This commit is contained in:
2026-05-18 16:29:34 +02:00
parent df6f52464e
commit 31a337da6a
2 changed files with 23 additions and 9 deletions

View File

@@ -100,7 +100,10 @@ export function getTerrainLayerTexture(
return getFallbackTerrainLayerTexture();
}
return textureLookup(material) ?? getSolidColorTerrainLayerTexture(material.swatchColorHex);
return (
textureLookup(material) ??
getSolidColorTerrainLayerTexture(material.swatchColorHex)
);
}
export function getTerrainLayerPreviewColor(