Explorar o código

Model: more helpful loading error message

trethaller %!s(int64=6) %!d(string=hai) anos
pai
achega
c01a6e2a20
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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);