repo: janusweb action: commit revision: path_from: revision_from: 12ae3c484af4c341fea47fb11e651bb163935df7: path_to: revision_to:
commit 12ae3c484af4c341fea47fb11e651bb163935df7 Author: James BaicoianuDate: 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
--- 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-----