PlyParser: fix invalid loading when comment is empty.
parent
98ba2d2310
commit
93be0f69da
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue