Merge pull request #819 from emvivre/master
PlyParser: fix invalid loading when comment is empty.pull/821/head
commit
8872e96183
|
@ -419,8 +419,11 @@ bool PLY::DOM::SkipComments (const char* pCur,
|
|||
if (!SkipSpaces(pCur,&pCur))return false;
|
||||
|
||||
if (TokenMatch(pCur,"comment",7))
|
||||
{
|
||||
if ( !IsLineEnd(pCur[-1]) )
|
||||
{
|
||||
SkipLine(pCur,&pCur);
|
||||
}
|
||||
SkipComments(pCur,&pCur);
|
||||
*pCurOut = pCur;
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue