repo: janusweb
action: commit
revision: 
path_from: 
revision_from: 12ae3c484af4c341fea47fb11e651bb163935df7:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit 12ae3c484af4c341fea47fb11e651bb163935df7
Author: James Baicoianu 
Date:   Sun Jan 30 13:56:21 2022 -0800

    Don't set renderOrder if object doesn't exist yet

diff --git a/scripts/janusbase.js b/scripts/janusbase.js
index 575d54ff0cf8227cca458d9007684d17e7167b0a..
index ..6ba5a132a4c0a7e53715c1f43485eae44ca7ddf5 100644
--- a/scripts/janusbase.js
+++ b/scripts/janusbase.js
@@ -83,7 +83,7 @@ elation.require(['engine.things.generic', 'utils.template', 'janusweb.parts'], f
         this.properties.orientation.copy(this.object.quaternion);
         return this.object;
       }
-      if (this.renderorder) this.object.renderOrder = this.renderorder;
+      if (this.renderorder && this.object) this.object.renderOrder = this.renderorder;
       return new THREE.Object3D();
     }
     this.createChildren = function() {

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