소스 검색

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;
 	}