From c8572881a18c688dbabeebd204b6638792879327 Mon Sep 17 00:00:00 2001 From: divverent Date: Wed, 17 Nov 2010 21:05:48 +0000 Subject: [PATCH] developer_extra: also spam some messages during model loading regarding .skin file parsing git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10602 d7cf8633-e32d-0410-b094-e92efae38249 --- model_alias.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/model_alias.c b/model_alias.c index f394a71b..98c01f22 100644 --- a/model_alias.c +++ b/model_alias.c @@ -851,6 +851,8 @@ void Mod_BuildAliasSkinsFromSkinFiles(texture_t *skin, skinfile_t *skinfile, con int i; static char stripbuf[MAX_QPATH]; skinfileitem_t *skinfileitem; + if(developer_extra.integer) + Con_DPrintf("Looking up texture for %s (default: %s)\n", meshname, shadername); if (skinfile) { // the skin += loadmodel->num_surfaces part of this is because data_textures on alias models is arranged as [numskins][numsurfaces] @@ -864,6 +866,8 @@ void Mod_BuildAliasSkinsFromSkinFiles(texture_t *skin, skinfile_t *skinfile, con if (!strcmp(skinfileitem->name, meshname)) { Image_StripImageExtension(skinfileitem->replacement, stripbuf, sizeof(stripbuf)); + if(developer_extra.integer) + Con_DPrintf("--> got %s from skin file\n", stripbuf); Mod_LoadTextureFromQ3Shader(skin, stripbuf, true, true, (r_mipskins.integer ? TEXF_MIPMAP : 0) | TEXF_ALPHA | TEXF_PICMIP | TEXF_COMPRESS); break; } @@ -872,12 +876,16 @@ void Mod_BuildAliasSkinsFromSkinFiles(texture_t *skin, skinfile_t *skinfile, con { // don't render unmentioned meshes Mod_BuildAliasSkinFromSkinFrame(skin, NULL); + if(developer_extra.integer) + Con_DPrintf("--> skipping\n"); skin->basematerialflags = skin->currentmaterialflags = MATERIALFLAG_NOSHADOW | MATERIALFLAG_NODRAW; } } } else { + if(developer_extra.integer) + Con_DPrintf("--> using default\n"); Image_StripImageExtension(shadername, stripbuf, sizeof(stripbuf)); Mod_LoadTextureFromQ3Shader(skin, stripbuf, true, true, (r_mipskins.integer ? TEXF_MIPMAP : 0) | TEXF_ALPHA | TEXF_PICMIP | TEXF_COMPRESS); } -- 2.39.2