-- Leo's gemini proxy

-- Connecting to git.thebackupbox.net:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini

repo: janusweb
action: commit
revision:
path_from:
revision_from: 40943d6209eec4ab5bb663b7752eb0322bf973e2:
path_to:
revision_to:

git.thebackupbox.net

janusweb

git://git.thebackupbox.net/janusweb

commit 40943d6209eec4ab5bb663b7752eb0322bf973e2
Author: James Baicoianu <james_github@baicoianu.com>
Date:   Thu Oct 22 13:13:37 2020 -0700

    Assign textures to dynamically-allocated objects

diff --git a/scripts/object.js b/scripts/object.js

index 5e677226cb3e7a86587965bb7e039dee757e3b26..

index ..b3998e694426ae2639ce6ee766dc371b07122157 100644

--- a/scripts/object.js
+++ b/scripts/object.js
@@ -67,9 +67,9 @@ elation.require(['janusweb.janusbase', 'janusweb.websurface'], function() {
       if (this.object && this.object instanceof THREE.Object3D) {
         this.properties.position.copy(this.object.position);
         this.properties.orientation.copy(this.object.quaternion);
-        return this.object;
-      }
-      if (this.janusid) {
+        object = this.object;
+        setTimeout(() => { this.handleLoad(); this.assignTextures(); }, 100);
+      } else if (this.janusid) {
         var asset = this.getAsset('model', this.janusid, true);
         this.dispatchEvent({type: 'loadstart'});
         if (asset) {

-----END OF PAGE-----

-- Response ended

-- Page fetched on Sun Jun 2 18:11:25 2024