Selaa lähdekoodia

added NaN check

ncannasse 7 vuotta sitten
vanhempi
commit
93e9c39642
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  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) {
 	function round(v:Float) {
+		if( v != v ) throw "NaN found";
 		return std.Math.fround(v * 131072) / 131072;
 		return std.Math.fround(v * 131072) / 131072;
 	}
 	}