Parcourir la source

BaseLibrary: better error

lviguier il y a 9 mois
Parent
commit
e8d3dfe636
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      hxd/fmt/fbx/BaseLibrary.hx

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

@@ -1401,7 +1401,7 @@ class BaseLibrary {
 	}
 
 	function round(v:Float) {
-		if( v != v ) throw "NaN found (could be multiple skin mesh, currently not supported)";
+		if( v != v ) throw '${fileName} : NaN found (could be multiple skin mesh, currently not supported)';
 		return highPrecision ? v : std.Math.fround(v * 131072) / 131072;
 	}