Skip to content

Commit

Permalink
print which material has missing textures when interior load fails
Browse files Browse the repository at this point in the history
  • Loading branch information
HumanGamer committed Mar 25, 2024
1 parent d1b882c commit b6b024a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions engine/source/interior/interiorInstance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,9 @@ bool InteriorInstance::onAdd()
Material* mat = pInterior->mMaterialList->getMappedMaterial(j);
if (mat != NULL)
foundAllMaterials = foundAllMaterials && mat->preloadTextures();

if (!foundAllMaterials)
Con::errorf(ConsoleLogEntry::General, "missing texture for material: %s", pInterior->mMaterialList->getMaterialName(j));
}
}
if (!foundAllMaterials) {
Expand Down

0 comments on commit b6b024a

Please sign in to comment.