소스 검색

Better error reporting

trethaller 7 년 전
부모
커밋
8334a5ba80
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      h3d/prim/ModelCache.hx

+ 2 - 0
h3d/prim/ModelCache.hx

@@ -45,6 +45,8 @@ class ModelCache {
 		try {
 			tres = hxd.res.Loader.currentInstance.load(texturePath);
 		} catch( error : hxd.res.NotFound ) {
+			if(model == null)
+				throw error;
 			// try again to load into the current model directory
 			var path = model.entry.directory;
 			if( path != "" ) path += "/";