repo: janusweb
action: commit
revision: 
path_from: 
revision_from: 4c7ec8e69913b1e7fa9d488ae45b0fccb3cc1d17:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit 4c7ec8e69913b1e7fa9d488ae45b0fccb3cc1d17
Author: James Baicoianu 
Date:   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
index 6193a7faf6b505aae6c1cf33d403756e48ece1f4..
index ..834291a175d4590557cdefe120cc6d9d41094957 100644
--- 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-----