Browse Source

TDSLoader: Clean up

Mugen87 7 năm trước cách đây
mục cha
commit
28ae46a2e6
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      examples/js/loaders/TDSLoader.js

+ 2 - 1
examples/js/loaders/TDSLoader.js

@@ -354,7 +354,6 @@ THREE.TDSLoader.prototype = {
 
 
 				this.resetPosition( data );
 				this.resetPosition( data );
 				this.readFaceArray( data, mesh );
 				this.readFaceArray( data, mesh );
-				geometry.computeVertexNormals();
 
 
 			} else if ( next === TEX_VERTS ) {
 			} else if ( next === TEX_VERTS ) {
 
 
@@ -433,6 +432,8 @@ THREE.TDSLoader.prototype = {
 
 
 		this.endChunk( chunk );
 		this.endChunk( chunk );
 
 
+		geometry.computeVertexNormals();
+
 		return mesh;
 		return mesh;
 
 
 	},
 	},