hack to disable control

This commit is contained in:
casperlamboo 2017-11-13 12:44:03 +01:00
parent 8e985669ed
commit 23087af9fc

View File

@ -100,6 +100,7 @@ class Interface extends React.Component {
reset = () => { reset = () => {
const { control, mesh, render, gcode, scene } = this.state; const { control, mesh, render, gcode, scene } = this.state;
control.enabled = true; control.enabled = true;
control.setSize(1);
control.visible = true; control.visible = true;
mesh.visible = true; mesh.visible = true;
@ -135,6 +136,8 @@ class Interface extends React.Component {
// TODO // TODO
// can't disable control ui still interacts with mouse input // can't disable control ui still interacts with mouse input
control.enabled = false; control.enabled = false;
// hack to disable control
control.setSize(0);
control.visible = false; control.visible = false;
mesh.visible = false; mesh.visible = false;