From: Thomas Debesse Date: Fri, 4 May 2018 15:55:06 +0000 (+0200) Subject: print picomodel filename on error for @Viech, fix #112 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1ddc08ec7e251c504a55d5f33170cec680da24f1;p=xonotic%2Fnetradiant.git print picomodel filename on error for @Viech, fix #112 --- diff --git a/libs/picomodel/pm_obj.c b/libs/picomodel/pm_obj.c index 24f3ee8a..e342ab08 100644 --- a/libs/picomodel/pm_obj.c +++ b/libs/picomodel/pm_obj.c @@ -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 ); \