ソースを参照

Model: more helpful loading error message

trethaller 6 年 前
コミット
c01a6e2a20
1 ファイル変更1 行追加0 行削除
  1. 1 0
      hide/prefab/Model.hx

+ 1 - 0
hide/prefab/Model.hx

@@ -51,6 +51,7 @@ class Model extends Object3D {
 
 			return ctx;
 		} catch( e : Dynamic ) {
+			e.message = "Could not load model " + source + ": " + e.message;
 			ctx.shared.onError(e);
 		}
 		ctx.local3d = new h3d.scene.Object(ctx.local3d);