From fbbbd2e7d78de1f9b56f55f419c1fbe252887166 Mon Sep 17 00:00:00 2001 From: Garux Date: Mon, 23 Mar 2020 19:55:03 +0300 Subject: [PATCH] picomodel::ase: support standard empty bitmap name 'none' --- libs/picomodel/pm_ase.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/picomodel/pm_ase.c b/libs/picomodel/pm_ase.c index 45249cf3..5986a27a 100644 --- a/libs/picomodel/pm_ase.c +++ b/libs/picomodel/pm_ase.c @@ -1045,6 +1045,9 @@ static picoModel_t *_ase_load( PM_PARAMS_LOAD ){ if ( name == NULL ) { _ase_error_return( "Missing material map bitmap name" ); } + else if( !_pico_stricmp( name, "none" ) ){ // standard empty bitmap name + name = ""; + } mapname = _pico_alloc( strlen( name ) + 1 ); strcpy( mapname, name ); /* skip rest and continue with next token */