From 45642af763f71081aefe77bb6bd72de4eae9b7c0 Mon Sep 17 00:00:00 2001 From: danij Date: Fri, 3 Oct 2014 16:51:34 +0100 Subject: [PATCH] Debug|Resources: Log all Model.skin => Texture mappings when extra verbose --- doomsday/client/src/resource/resourcesystem.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/doomsday/client/src/resource/resourcesystem.cpp b/doomsday/client/src/resource/resourcesystem.cpp index 626dea7a04..108ccdf34e 100644 --- a/doomsday/client/src/resource/resourcesystem.cpp +++ b/doomsday/client/src/resource/resourcesystem.cpp @@ -1730,6 +1730,19 @@ DENG2_PIMPL(ResourceSystem) LOG_RES_WARNING("Model \"%s\" will be rendered without a skin (none found)") << NativePath(modelFilePath).pretty(); } + +#ifdef DENG2_DEBUG + LOGDEV_RES_XVERBOSE("Model \"%s\" skins:") << NativePath(modelFilePath).pretty(); + int skinIdx = 0; + for(ModelSkin const &skin : mdl.skins()) + { + TextureManifest const *texManifest = skin.texture? &skin.texture->manifest() : 0; + LOGDEV_RES_XVERBOSE(" %i: %s") + << (skinIdx++) << skin.name + << (texManifest? texManifest->composeUri() : "(missing texture)") + << (texManifest? String(" => ") + NativePath(texManifest->resourceUri().compose()).pretty() : ""); + } +#endif } /**