From f08657cb3f8ee1d492726c406f22ede7a9b2e2fc Mon Sep 17 00:00:00 2001 From: Robert Beckebans Date: Sat, 1 Oct 2022 13:59:10 +0200 Subject: [PATCH] Fixed random Unknown punctuation error while loading a glTF2 model --- neo/idlib/gltfParser.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/neo/idlib/gltfParser.cpp b/neo/idlib/gltfParser.cpp index 1cd55590..b6d55316 100644 --- a/neo/idlib/gltfParser.cpp +++ b/neo/idlib/gltfParser.cpp @@ -2072,7 +2072,10 @@ bool GLTF_Parser::Parse() parser.ExpectTokenString( "}" ); } } + //parser should be at end. +#if 0 + // RB: this results into a random "Unknown punctuation" error sometimes parser.ReadToken( &token ); if( parser.EndOfFile() ) { @@ -2082,6 +2085,9 @@ bool GLTF_Parser::Parse() { common->FatalError( "%s not fully loaded.", currentFile.c_str() ); } +#else + common->Printf( "%s ^2loaded\n", currentFile.c_str() ); +#endif buffersDone = false; bufferViewsDone = false;