From b6b024a8155c3ea268c08196a2d6ba1b9e20276b Mon Sep 17 00:00:00 2001 From: Human Gamer <39096122+HumanGamer@users.noreply.github.com> Date: Mon, 25 Mar 2024 16:32:01 -0500 Subject: [PATCH] print which material has missing textures when interior load fails --- engine/source/interior/interiorInstance.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/engine/source/interior/interiorInstance.cpp b/engine/source/interior/interiorInstance.cpp index 8f448925..18796dac 100644 --- a/engine/source/interior/interiorInstance.cpp +++ b/engine/source/interior/interiorInstance.cpp @@ -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) {