Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Debug|Resources: Log all Model.skin => Texture mappings when extra ve…
…rbose
  • Loading branch information
danij-deng committed Oct 3, 2014
1 parent 3a8a750 commit 45642af
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions doomsday/client/src/resource/resourcesystem.cpp
Expand Up @@ -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
}

/**
Expand Down

0 comments on commit 45642af

Please sign in to comment.