From 348efb92cce721d9de380601f6006b7d8b509dd0 Mon Sep 17 00:00:00 2001 From: Pete Shadbolt Date: Wed, 14 Dec 2016 08:04:23 -0800 Subject: [PATCH] Repair hack. --- abp/static/scripts/editor.js | 1 + abp/static/scripts/materials.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/abp/static/scripts/editor.js b/abp/static/scripts/editor.js index 87c2d7b..9ce4ad7 100644 --- a/abp/static/scripts/editor.js +++ b/abp/static/scripts/editor.js @@ -127,6 +127,7 @@ editor.makeGrid = function() { editor.grid.renderOrder = 1000; editor.setOrientation(0); gui.scene.add(editor.grid); + gui.scene.children[0].renderOrder = -3000; }; editor.update = function() {}; diff --git a/abp/static/scripts/materials.js b/abp/static/scripts/materials.js index d0ee18d..14f762b 100644 --- a/abp/static/scripts/materials.js +++ b/abp/static/scripts/materials.js @@ -10,7 +10,7 @@ materials.prepare = function() { var ballSprite = new THREE.Texture(document.getElementById("ball")); ballSprite.needsUpdate = true; materials.edge = new THREE.LineBasicMaterial({ - color: "gray", + color: "red", transparent: false, linewidth: 3 });