Revert "Remove useless logs"

This reverts commit 50b41f49d2.
This commit is contained in:
Thomas FORGIONE 2015-04-18 17:28:17 +02:00
parent 443f12f553
commit 02884bbaf9
1 changed files with 3 additions and 0 deletions

View File

@ -20,6 +20,7 @@ function init() {
document.getElementById('reset').onclick = function() { cameras.mainCamera().reset(); }; document.getElementById('reset').onclick = function() { cameras.mainCamera().reset(); };
var fullarrow = document.getElementById('fullarrow'); var fullarrow = document.getElementById('fullarrow');
fullarrow.onclick = function() { fullarrow.onclick = function() {
console.log(fullarrow.innerHTML);
if (fullarrow.innerHTML === 'Full arrow') { if (fullarrow.innerHTML === 'Full arrow') {
fullarrow.innerHTML = "Half arrow"; fullarrow.innerHTML = "Half arrow";
} else { } else {
@ -97,6 +98,7 @@ function init() {
object.geometry.computeVertexNormals(); object.geometry.computeVertexNormals();
object.material.side = THREE.DoubleSide; object.material.side = THREE.DoubleSide;
if (object.material.name === 'Material.103_princess_peaches_cast') { if (object.material.name === 'Material.103_princess_peaches_cast') {
console.log(object.material.name);
object.material.transparent = true; object.material.transparent = true;
} }
} }
@ -118,6 +120,7 @@ function init() {
object.traverse(function (object) { object.traverse(function (object) {
if (object instanceof THREE.Mesh) { if (object instanceof THREE.Mesh) {
object.material.side = THREE.DoubleSide; object.material.side = THREE.DoubleSide;
console.log(object.geometry.vertices.length);
object.geometry.mergeVertices(); object.geometry.mergeVertices();
object.geometry.computeVertexNormals(); object.geometry.computeVertexNormals();
if (object.material.name === 'Material.054_777F0E0B_c.bmp' || if (object.material.name === 'Material.054_777F0E0B_c.bmp' ||