浏览代码

Throw load texture error with model path if any.

clementlandrin 1 年之前
父节点
当前提交
5b6326958d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      h3d/prim/ModelCache.hx

+ 1 - 1
h3d/prim/ModelCache.hx

@@ -106,7 +106,7 @@ class ModelCache {
 				tres = hxd.res.Loader.currentInstance.load(path);
 			} catch( e : hxd.res.NotFound ) {
 				// force good path error
-				throw error;
+				throw error + (model != null ? " fullpath : " + fullPath : "");
 			}
 		}
 		var img = tres.toImage();