From: Garux Date: Mon, 23 Mar 2020 16:55:03 +0000 (+0300) Subject: picomodel::ase: support standard empty bitmap name 'none' X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=2668a13fe0dbdee6e23eb324987fed59967945ca;p=xonotic%2Fnetradiant.git picomodel::ase: support standard empty bitmap name 'none' --- 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 */