PlyParser: fix invalid loading when comment is empty.

pull/819/head
emvivre 2016-03-10 17:47:07 +01:00
parent 98ba2d2310
commit 93be0f69da
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;