From 9ab5509e7332a0849e0bb1fea5d95b6f08b9a6f6 Mon Sep 17 00:00:00 2001 From: Pete Shadbolt Date: Wed, 14 Dec 2016 07:41:45 -0800 Subject: [PATCH] Hacky fix. --- abp/static/scripts/main.js | 2 ++ abp/static/scripts/materials.js | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/abp/static/scripts/main.js b/abp/static/scripts/main.js index 9e16859..597dd77 100644 --- a/abp/static/scripts/main.js +++ b/abp/static/scripts/main.js @@ -4,5 +4,7 @@ window.onload = function() { gui.prepare(); mouse.prepare(); editor.prepare(); + gui.scene.children[0].renderOrder = -1000; + console.log(gui.scene.children[0].renderOrder = -1000); gui.loop(); }; diff --git a/abp/static/scripts/materials.js b/abp/static/scripts/materials.js index 68caffa..d0ee18d 100644 --- a/abp/static/scripts/materials.js +++ b/abp/static/scripts/materials.js @@ -22,10 +22,8 @@ materials.prepare = function() { transparent: true, vertexColors: THREE.VertexColors }); - materials.edge.depthTest = false; }; -console.log("what"); materials.makeCurve = function(a, b) { var length = new THREE.Vector3().subVectors(a, b).length();