repo: janusweb
action: commit
revision: 
path_from: 
revision_from: 67c0353045b12debd9cbd66b8db80f3bc52a3d84:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit 67c0353045b12debd9cbd66b8db80f3bc52a3d84
Author: James Baicoianu 
Date:   Mon Jul 13 11:35:12 2020 -0700

    Apply renderorder to child objects as they load

diff --git a/scripts/object.js b/scripts/object.js
index b7e4a0f93b9a8951cd69f41372c45f1ed227d63f..
index ..efc2223bb37c7563769242ba59b4f34b67dcb1d5 100644
--- a/scripts/object.js
+++ b/scripts/object.js
@@ -552,6 +552,7 @@ elation.require(['janusweb.janusbase', 'janusweb.websurface'], function() {
       this.traverseObjects(elation.bind(this, function(n) { 
         n.receiveShadow = this.shadow && this.shadow_receive;
         n.castShadow = this.shadow && this.shadow_cast;
+        n.renderOrder = this.renderorder;

         var useSkinning = n instanceof THREE.SkinnedMesh;
         var useVertexColors = n instanceof THREE.Mesh && n.geometry instanceof THREE.BufferGeometry && n.geometry.attributes.color;

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