From 2668a13fe0dbdee6e23eb324987fed59967945ca 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 101a7d2d..81bb99db 100644 --- a/libs/picomodel/pm_ase.c +++ b/libs/picomodel/pm_ase.c @@ -1041,6 +1041,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 */ -- 2.39.2