Commit 81467c46 authored by Zack Middleton's avatar Zack Middleton

Print name of undefined OBJ material

From Garux's netradiant-custom fork.
parent 54ae19e5
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment