diff --git a/code/PlyParser.cpp b/code/PlyParser.cpp index df7d6883b..5b6a35e5f 100644 --- a/code/PlyParser.cpp +++ b/code/PlyParser.cpp @@ -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;