diff --git a/src/main/java/org/osm2world/core/target/common/MeshTarget.java b/src/main/java/org/osm2world/core/target/common/MeshTarget.java index 08072d2a..5a1b0695 100644 --- a/src/main/java/org/osm2world/core/target/common/MeshTarget.java +++ b/src/main/java/org/osm2world/core/target/common/MeshTarget.java @@ -251,7 +251,8 @@ public MeshStore apply(MeshStore meshStore) { for (MeshWithMetadata meshWithMetadata : meshStore.meshesWithMetadata()) { - if (meshWithMetadata.mesh().material.getTextureLayers().stream().noneMatch(it -> it.colorable)) { + if (!meshWithMetadata.mesh().material.getTextureLayers().isEmpty() + && meshWithMetadata.mesh().material.getTextureLayers().stream().noneMatch(it -> it.colorable)) { result.add(meshWithMetadata); continue; }