浏览代码

BaseLibrary: better error

lviguier 9 月之前
父节点
当前提交
e8d3dfe636
共有 1 个文件被更改,包括 1 次插入1 次删除
  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;
 	}