picomodel::ase: support standard empty bitmap name 'none'

This commit is contained in:
Garux 2020-03-23 19:55:03 +03:00
parent 5fb3d587a4
commit fbbbd2e7d7

View File

@ -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 */