Ver código fonte

Merge pull request #8213 from Mugen87/dev

BoxGeometry: Merge redundant vertices
Mr.doob 9 anos atrás
pai
commit
355daf9493
1 arquivos alterados com 1 adições e 0 exclusões
  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 );