repo: janusweb action: commit revision: path_from: revision_from: b68b744ef8572522f760219174e8c2665e99e433: path_to: revision_to:
commit b68b744ef8572522f760219174e8c2665e99e433 Author: James BaicoianuDate: Sun Mar 10 17:26:58 2024 -0700 Outliner fix diff --git a/scripts/elements/outliner.js b/scripts/elements/outliner.js
--- 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-----