]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
Print name of undefined OBJ material 108/head
authorZack Middleton <zack@cloemail.com>
Wed, 31 Oct 2018 02:48:05 +0000 (21:48 -0500)
committerZack Middleton <zack@cloemail.com>
Wed, 31 Oct 2018 02:51:40 +0000 (21:51 -0500)
From Garux's netradiant-custom fork.

libs/picomodel/pm_obj.c

index 3e2a65db9d5b8e8a9cffc6cede6f38d31a44d617..e5e03e41217778de07bb41ac14f120c28e0ff889 100644 (file)
@@ -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 );