Some more cleaning

This commit is contained in:
Thomas FORGIONE 2015-07-01 15:18:43 +02:00
parent 86f2094af6
commit 5e0551179e
4 changed files with 5 additions and 11 deletions

View File

@ -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 \

View File

@ -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();

View File

@ -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();};

View File

@ -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;