Don't use isspace() in OBJ file parser.

pull/316/head
Tyson Grant Nottingham 2014-07-22 21:59:23 -07:00
parent 79c56adea4
commit 0c5605d07d
1 changed files with 4 additions and 9 deletions

View File

@ -233,17 +233,12 @@ void ObjFileParser::copyNextLine(char *pBuffer, size_t length)
// -------------------------------------------------------------------
void ObjFileParser::getVector( std::vector<aiVector3D> &point3d_array ) {
size_t numComponents( 0 );
DataArrayIt tmp( m_DataIt );
while( true ) {
while( isspace(*tmp) && !IsLineEnd(*tmp) ) {
tmp++;
}
if( IsLineEnd(*tmp) ) {
const char* tmp( &m_DataIt[0] );
while( !IsLineEnd( *tmp ) ) {
if ( !SkipSpaces( &tmp ) ) {
break;
}
while( !isspace(*tmp) ) {
tmp++;
}
SkipToken( tmp );
++numComponents;
}
float x, y, z;