repo: janusweb
action: commit
revision: 
path_from: 
revision_from: 9ff454aa33c7d2d56dd8834f50cd8edaf66c4089:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit 9ff454aa33c7d2d56dd8834f50cd8edaf66c4089
Author: James Baicoianu 
Date:   Mon May 22 00:00:08 2017 -0700

    Disable normal calculation (already happens in asset loader)

diff --git a/scripts/object.js b/scripts/object.js
index 8449ee88c6ee4efe41164afacc9d003d0b143344..
index ..174a4bff50c935fce3023689bba6e68ab8ab9bd0 100644
--- a/scripts/object.js
+++ b/scripts/object.js
@@ -114,10 +114,6 @@ elation.require(['janusweb.janusbase', 'janusweb.websurface'], function() {
                 //collider.bindScale(this.properties.scale);

                 collider.traverse(elation.bind(this, function(n) {
-                  if (n.geometry) {
-                    n.geometry.computeVertexNormals();
-                    n.geometry.computeFaceNormals();
-                  }
                   if (n.material) n.material = new THREE.MeshLambertMaterial({color: 0x999900, opacity: .2, transparent: true, emissive: 0x444400, alphaTest: .01, depthTest: false, depthWrite: false});
                   n.userData.thing = this;
                 }));

-----END OF PAGE-----