From fb4f4927d6ed19ae679ddfbf9c8b7f8b2211cc58 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Fri, 27 Oct 2017 10:10:33 +0200 Subject: [PATCH] delayed instance update --- src/game-lib-system-input.js | 26 ++------------------------ 1 file changed, 2 insertions(+), 24 deletions(-) diff --git a/src/game-lib-system-input.js b/src/game-lib-system-input.js index 150fce2..c6e580b 100644 --- a/src/game-lib-system-input.js +++ b/src/game-lib-system-input.js @@ -164,7 +164,8 @@ GameLib.System.Input.prototype.start = function() { false ); - editorControl.delayedInstance(); + editorControl.delayed = false; + editorControl.createInstance(); editorControl.domElement.instance.addEventListener( 'mousewheel', @@ -697,29 +698,6 @@ GameLib.System.Input.prototype.stop = function() { // //todo - change view // } // -// if (event.code == "KeyQ") { -// -// this.editor.allSelected = !this.editor.allSelected; -// -// this.editor.selectedObjects = []; -// -// if (this.editor.allSelected) { -// for (var property in this.editor.idToObject) { -// if (this.editor.idToObject.hasOwnProperty(property)) { -// this.editor.selectedObjects.push( -// new GameLib.D3.SelectedObject( -// this.graphics, -// this.editor.idToObject(property) -// ) -// ) -// } -// } -// } -// -// if (this.editor.onSelectionChanged) { -// this.editor.onSelectionChanged(this.editor); -// } -// } // // if (event.code == 'KeyG') { // if (!this.meshMoveMode) {