Skip to content

Commit

Permalink
Handle untextured materials correctly in MoveColorsToVertices
Browse files Browse the repository at this point in the history
  • Loading branch information
tordanik committed Oct 19, 2024
1 parent b43472b commit 36c0a43
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 36c0a43

Please sign in to comment.