Browse Source

Allow trailing comma in after a-node (#381)

Jeff Ward 7 years ago
parent
commit
ca2f44c921
1 changed files with 2 additions and 1 deletions
  1. 2 1
      hxd/fmt/fbx/Parser.hx

+ 2 - 1
hxd/fmt/fbx/Parser.hx

@@ -100,6 +100,7 @@ class Parser {
 					}
 				}
 				props.push(floats == null ? PInts(ints) : PFloats(floats));
+				if (peek()==TColon) except(TColon); // Allow trailing ,
 				except(TBraceClose);
 				break;
 			default:
@@ -270,4 +271,4 @@ class Parser {
 		return new Parser().parseText(text);
 	}
 
-}
+}