consider ability of _pico_parse() to return empty string (on trailing space w/o linefeed in this case)

This commit is contained in:
Garux 2021-03-13 11:32:45 +03:00
parent c7fedadcd1
commit 4f5f5649dc

View File

@ -727,7 +727,7 @@ static picoModel_t *_obj_load( PM_PARAMS_LOAD ){
/* get next vertex index string (different */
/* formats are handled below) */
str = _pico_parse( p,0 );
if ( str == NULL ) {
if ( str == NULL || *str == '\0' ) {
/* got nuff points */
if ( i >= 3 ) {
break;