PlyParser: fix invalid loading when comment is empty.

This commit is contained in:
emvivre
2016-03-10 17:47:07 +01:00
parent 98ba2d2310
commit 93be0f69da

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;