BUGFIX : Fix crash in material loader.
git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@535 67173fc5-114c-0410-ac8e-9d2fd5bffc1fpull/1/head
parent
5c0432057a
commit
21f948288c
|
@ -93,7 +93,7 @@ inline Char_T getNextWord( Char_T pBuffer, Char_T pEnd )
|
||||||
{
|
{
|
||||||
while ( !isEndOfBuffer( pBuffer, pEnd ) )
|
while ( !isEndOfBuffer( pBuffer, pEnd ) )
|
||||||
{
|
{
|
||||||
if ( !isSeparator( *pBuffer ) )
|
if ( !isSeparator( *pBuffer ) || isNewLine( *pBuffer ) )
|
||||||
break;
|
break;
|
||||||
pBuffer++;
|
pBuffer++;
|
||||||
}
|
}
|
||||||
|
@ -126,7 +126,7 @@ inline Char_T getNextToken( Char_T pBuffer, Char_T pEnd )
|
||||||
template<class char_t>
|
template<class char_t>
|
||||||
inline char_t skipLine( char_t it, char_t end, unsigned int &uiLine )
|
inline char_t skipLine( char_t it, char_t end, unsigned int &uiLine )
|
||||||
{
|
{
|
||||||
while ( !isEndOfBuffer( it, end ) && *it != '\n' )
|
while ( !isEndOfBuffer( it, end ) && !isNewLine( *it ) )
|
||||||
++it;
|
++it;
|
||||||
if ( it != end )
|
if ( it != end )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue