浏览代码

fixed 2e-XXX values in fbx (no dot)

ncannasse 12 年之前
父节点
当前提交
2aa3ae7381
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      h3d/fbx/Parser.hx

+ 1 - 1
h3d/fbx/Parser.hx

@@ -237,7 +237,7 @@ class Parser {
 					do {
 						c = nextChar();
 					} while( c >= '0'.code && c <= '9'.code );
-					if( c != '.'.code && pos - start < 10 ) {
+					if( c != '.'.code && c != 'E'.code && c != 'e'.code && pos - start < 10 ) {
 						pos--;
 						return TInt(getBuf(start, pos - start));
 					}