From 1ddc08ec7e251c504a55d5f33170cec680da24f1 Mon Sep 17 00:00:00 2001 From: Thomas Debesse Date: Fri, 4 May 2018 17:55:06 +0200 Subject: [PATCH] print picomodel filename on error for @Viech, fix #112 --- libs/picomodel/pm_obj.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); \ -- 2.39.2