Merge pull request #1161 from NolaDonato/spacesinfilenames
OBJParser: Support spaces in texture file namespull/1180/head
commit
cbaec4cae8
|
@ -140,15 +140,13 @@ inline char_t getName( char_t it, char_t end, std::string &name )
|
||||||
}
|
}
|
||||||
|
|
||||||
char *pStart = &( *it );
|
char *pStart = &( *it );
|
||||||
while( !isEndOfBuffer( it, end ) && !IsLineEnd( *it ) && !IsSpaceOrNewLine( *it ) ) {
|
while( !isEndOfBuffer( it, end ) && !IsLineEnd( *it )) {
|
||||||
++it;
|
++it;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*while( isEndOfBuffer( it, end ) || IsLineEnd( *it ) || IsSpaceOrNewLine( *it ) ) {
|
while(IsSpace( *it ) ) {
|
||||||
--it;
|
--it;
|
||||||
}
|
}
|
||||||
++it;
|
|
||||||
*/
|
|
||||||
// Get name
|
// Get name
|
||||||
// if there is no name, and the previous char is a separator, come back to start
|
// if there is no name, and the previous char is a separator, come back to start
|
||||||
while (&(*it) < pStart) {
|
while (&(*it) < pStart) {
|
||||||
|
|
Loading…
Reference in New Issue