repo: janusweb
action: commit
revision: 
path_from: 
revision_from: b68b744ef8572522f760219174e8c2665e99e433:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit b68b744ef8572522f760219174e8c2665e99e433
Author: James Baicoianu 
Date:   Sun Mar 10 17:26:58 2024 -0700

    Outliner fix

diff --git a/scripts/elements/outliner.js b/scripts/elements/outliner.js
index d82264b06ffe9fd463571670be1a0e1b522c4b15..
index ..d3875812ca22d96f0d502e0b0e1d5ad5a517a82f 100644
--- a/scripts/elements/outliner.js
+++ b/scripts/elements/outliner.js
@@ -59,7 +59,13 @@ elation.require(['janusweb.janusbase'], function() {
       this.outlinematerial.side = THREE.BackSide;
       //this.outlinematerial.blending = THREE.AdditiveBlending;

-      if (this.target) this.updateTarget();
+      if (this.target) {
+        this.updateTarget();
+      } else {
+        setTimeout(() => {
+          this.select(this.children[0]);
+        }, 50);
+      }
     },
     select(object) {
       this.selected = object;

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