From 23087af9fc09fea64c0da0252699c8e951c81a23 Mon Sep 17 00:00:00 2001 From: casperlamboo Date: Mon, 13 Nov 2017 12:44:03 +0100 Subject: [PATCH] hack to disable control --- src/interface/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/interface/index.js b/src/interface/index.js index f7588b8..3b29217 100644 --- a/src/interface/index.js +++ b/src/interface/index.js @@ -100,6 +100,7 @@ class Interface extends React.Component { reset = () => { const { control, mesh, render, gcode, scene } = this.state; control.enabled = true; + control.setSize(1); control.visible = true; mesh.visible = true; @@ -135,6 +136,8 @@ class Interface extends React.Component { // TODO // can't disable control ui still interacts with mouse input control.enabled = false; + // hack to disable control + control.setSize(0); control.visible = false; mesh.visible = false;