浏览代码

added NaN check

ncannasse 7 年之前
父节点
当前提交
93e9c39642
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      hxd/fmt/fbx/BaseLibrary.hx

+ 1 - 0
hxd/fmt/fbx/BaseLibrary.hx

@@ -1115,6 +1115,7 @@ class BaseLibrary {
 	}
 
 	function round(v:Float) {
+		if( v != v ) throw "NaN found";
 		return std.Math.fround(v * 131072) / 131072;
 	}