Merge pull request #819 from emvivre/master

PlyParser: fix invalid loading when comment is empty.
pull/821/head
Kim Kulling 2016-03-11 13:40:27 +01:00
commit 8872e96183
1 changed files with 4 additions and 1 deletions

View File

@ -420,7 +420,10 @@ bool PLY::DOM::SkipComments (const char* pCur,
if (TokenMatch(pCur,"comment",7))
{
SkipLine(pCur,&pCur);
if ( !IsLineEnd(pCur[-1]) )
{
SkipLine(pCur,&pCur);
}
SkipComments(pCur,&pCur);
*pCurOut = pCur;
return true;