Add test case to ensure terrain layers use swatch colors when no texture is found
This commit is contained in:
@@ -100,7 +100,10 @@ export function getTerrainLayerTexture(
|
||||
return getFallbackTerrainLayerTexture();
|
||||
}
|
||||
|
||||
return textureLookup(material) ?? getSolidColorTerrainLayerTexture(material.swatchColorHex);
|
||||
return (
|
||||
textureLookup(material) ??
|
||||
getSolidColorTerrainLayerTexture(material.swatchColorHex)
|
||||
);
|
||||
}
|
||||
|
||||
export function getTerrainLayerPreviewColor(
|
||||
|
||||
Reference in New Issue
Block a user