From: Zack Middleton Date: Wed, 31 Oct 2018 02:48:05 +0000 (-0500) Subject: Print name of undefined OBJ material X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=81467c469827d7db1e9989ba4c12ff68b838b329;p=xonotic%2Fnetradiant.git Print name of undefined OBJ material From Garux's netradiant-custom fork. --- diff --git a/libs/picomodel/pm_obj.c b/libs/picomodel/pm_obj.c index 3e2a65db..e5e03e41 100644 --- a/libs/picomodel/pm_obj.c +++ b/libs/picomodel/pm_obj.c @@ -902,7 +902,7 @@ static picoModel_t *_obj_load( PM_PARAMS_LOAD ){ { shader = PicoFindShader( model, name, 1 ); if ( shader == NULL ) { - _pico_printf( PICO_WARNING,"Undefined material name in OBJ %s, line %d. Making a default shader.",model->fileName,p->curLine ); + _pico_printf( PICO_WARNING,"Undefined material name \"%s\" in OBJ %s, line %d. Making a default shader.",name,model->fileName,p->curLine ); /* create a new pico shader */ shader = PicoNewShader( model );