]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
print picomodel filename on error for @Viech, fix #112
authorThomas Debesse <dev@illwieckz.net>
Fri, 4 May 2018 15:55:06 +0000 (17:55 +0200)
committerThomas Debesse <dev@illwieckz.net>
Fri, 4 May 2018 15:56:52 +0000 (17:56 +0200)
libs/picomodel/pm_obj.c

index 24f3ee8ac6ad7cc3e23046c377d586a70b4288cc..e342ab0882eb0530a690a6dabb8819c4e064a099 100644 (file)
@@ -540,7 +540,7 @@ static picoModel_t *_obj_load( PM_PARAMS_LOAD ){
        /* helper */
 #define _obj_error_return( m ) \
        { \
-               _pico_printf( PICO_ERROR,"%s in OBJ, line %d.",m,p->curLine ); \
+               _pico_printf( PICO_ERROR, "%s in OBJ %s, line %d.", m, model->fileName, p->curLine ); \
                _pico_free_parser( p ); \
                FreeObjVertexData( vertexData ); \
                PicoFreeModel( model ); \