소스 검색

Merge pull request #8213 from Mugen87/dev

BoxGeometry: Merge redundant vertices
Mr.doob 9 년 전
부모
커밋
355daf9493
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/extras/geometries/BoxGeometry.js

+ 1 - 0
src/extras/geometries/BoxGeometry.js

@@ -20,6 +20,7 @@ THREE.BoxGeometry = function ( width, height, depth, widthSegments, heightSegmen
 
 	this.fromBufferGeometry( new THREE.BoxBufferGeometry( width, height, depth, widthSegments, heightSegments, depthSegments ) );
 
+	this.mergeVertices();
 };
 
 THREE.BoxGeometry.prototype = Object.create( THREE.Geometry.prototype );