From 5e0551179ec2a85536f769b917fe7b49bef15979 Mon Sep 17 00:00:00 2001 From: Thomas FORGIONE Date: Wed, 1 Jul 2015 15:18:43 +0200 Subject: [PATCH] Some more cleaning --- js/Makefile | 1 - js/l3d/apps/prototype/tutorial/TutoCamera.js | 4 ---- js/l3d/apps/prototype/tutorial/TutorialSteps.js | 1 - js/l3d/src/recommendations/ReverseCamera.js | 10 +++++----- 4 files changed, 5 insertions(+), 11 deletions(-) diff --git a/js/Makefile b/js/Makefile index 05af510..f855c86 100644 --- a/js/Makefile +++ b/js/Makefile @@ -13,7 +13,6 @@ L3D: --js l3d/src/math/Tools.js \ --js l3d/src/math/Hermite.js \ --js l3d/src/utils/List.js \ - --js l3d/src/utils/ListTest.js \ --js l3d/src/utils/CameraSelecter.js \ --js l3d/src/utils/Logger.js \ --js l3d/src/utils/Objects.js \ diff --git a/js/l3d/apps/prototype/tutorial/TutoCamera.js b/js/l3d/apps/prototype/tutorial/TutoCamera.js index fb706cb..286dd9d 100644 --- a/js/l3d/apps/prototype/tutorial/TutoCamera.js +++ b/js/l3d/apps/prototype/tutorial/TutoCamera.js @@ -428,10 +428,6 @@ TutoCamera.prototype.onKeyEvent = function(event, toSet) { } } - switch (event.keyCode) { - case 13: if (toSet) this.log(); break; - } - if (motionJsonCopy != JSON.stringify(this.motion)) { // Log any change var e = new BD.Event.KeyboardEvent(); diff --git a/js/l3d/apps/prototype/tutorial/TutorialSteps.js b/js/l3d/apps/prototype/tutorial/TutorialSteps.js index 6645363..ef8a7a7 100644 --- a/js/l3d/apps/prototype/tutorial/TutorialSteps.js +++ b/js/l3d/apps/prototype/tutorial/TutorialSteps.js @@ -104,7 +104,6 @@ TutorialSteps.prototype.setCameras = function(cameras) { }; TutorialSteps.prototype.nextStep = function() { - console.log(this.step); if (this.step < this.instructions.length) { this.alert(this.instructions[this.step].text, this.instructions[this.step].justclick); var callback = function() {self.coinNumber++; self.nextStep();}; diff --git a/js/l3d/src/recommendations/ReverseCamera.js b/js/l3d/src/recommendations/ReverseCamera.js index 959737a..c83d6aa 100644 --- a/js/l3d/src/recommendations/ReverseCamera.js +++ b/js/l3d/src/recommendations/ReverseCamera.js @@ -155,11 +155,11 @@ ReverseCamera.prototype.regenerateArrow = function(mainCamera) { var len = vertices.length; faces.push(new THREE.Face3(len-4,len-3,len-2), new THREE.Face3(len-4,len-2,len-1)); - var max = 0; - for (i = 0; i < faces.length; i++) { - max = Math.max(max, faces[i].a, faces[i].b, faces[i].c); - } - console.log(max + '/' + len); + // var max = 0; + // for (i = 0; i < faces.length; i++) { + // max = Math.max(max, faces[i].a, faces[i].b, faces[i].c); + // } + // console.log(max + '/' + len); this.arrow.geometry.faces = faces;