Browse Source

Fixes issue with previous commit that references a nonexistent object.

Khang Duong 13 years ago
parent
commit
c2fe0d68d1
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/extras/loaders/ColladaLoader.js

+ 2 - 1
src/extras/loaders/ColladaLoader.js

@@ -2231,9 +2231,10 @@ THREE.ColladaLoader = function () {
 		this.geometry3js.computeCentroids();
 		this.geometry3js.computeCentroids();
 		this.geometry3js.computeFaceNormals();
 		this.geometry3js.computeFaceNormals();
 		
 		
-		if ( geom.calcNormals ) {
+		if ( this.geometry3js.calcNormals ) {
 			
 			
 			this.geometry3js.computeVertexNormals();
 			this.geometry3js.computeVertexNormals();
+			delete this.geometry3js.calcNormals;
 			
 			
 		}
 		}