Explorar o código

added NaN check

ncannasse %!s(int64=7) %!d(string=hai) anos
pai
achega
93e9c39642
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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;
 	}