Browse Source

Throw load texture error with model path if any.

clementlandrin 1 year ago
parent
commit
5b6326958d
1 changed files with 1 additions and 1 deletions
  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);
 				tres = hxd.res.Loader.currentInstance.load(path);
 			} catch( e : hxd.res.NotFound ) {
 			} catch( e : hxd.res.NotFound ) {
 				// force good path error
 				// force good path error
-				throw error;
+				throw error + (model != null ? " fullpath : " + fullPath : "");
 			}
 			}
 		}
 		}
 		var img = tres.toImage();
 		var img = tres.toImage();