Skip to content

Commit

Permalink
Fixed minor issue in VRML parsing where it would throw an error if it…
Browse files Browse the repository at this point in the history
… reached the end of the file at the wrong time.
  • Loading branch information
MeltyPlayer committed Nov 16, 2024
1 parent 9117371 commit 5d6fc34
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions FinModelUtility/Formats/Vrml/Vrml/src/api/VrmlParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ private static IReadOnlyList<INode> ReadChildren_(
var nodes = new LinkedList<INode>();
while (!tr.Eof) {
SkipWhitespace_(tr);

if (tr.Eof) {
break;
}

if (tr.Matches(out _, [']'])) {
break;
}
Expand Down

0 comments on commit 5d6fc34

Please sign in to comment.