Explorar o código

Merge pull request #8213 from Mugen87/dev

BoxGeometry: Merge redundant vertices
Mr.doob %!s(int64=9) %!d(string=hai) anos
pai
achega
355daf9493
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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 );