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