mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-03-14 22:50:45 +00:00
Fixed random Unknown punctuation error while loading a glTF2 model
This commit is contained in:
parent
e4ed5733fc
commit
f08657cb3f
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue