repo: janusweb action: commit revision: path_from: revision_from: 4c7ec8e69913b1e7fa9d488ae45b0fccb3cc1d17: path_to: revision_to:
commit 4c7ec8e69913b1e7fa9d488ae45b0fccb3cc1d17 Author: James BaicoianuDate: Thu Sep 26 15:01:05 2024 -0700 Store object.modelasset reference immediately when model is load diff --git a/scripts/object.js b/scripts/object.js
--- a/scripts/object.js
+++ b/scripts/object.js
@@ -109,7 +109,7 @@ elation.require(['janusweb.janusbase', 'janusweb.websurface'], function() {
object = this.object;
setTimeout(() => { this.handleLoad(); this.assignTextures(); }, 100);
} else if (this.janusid) {
- var asset = this.getAsset('model', this.janusid, true);
+ var asset = this.modelasset = this.getAsset('model', this.janusid, true);
this.dispatchEvent({type: 'loadstart'});
if (asset) {
if (asset.loaded) {
-----END OF PAGE-----