Pārlūkot izejas kodu

this.mergeVertices();

zz85 14 gadi atpakaļ
vecāks
revīzija
ab704afe0e
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      src/extras/geometries/CubeGeometry.js

+ 1 - 1
src/extras/geometries/CubeGeometry.js

@@ -60,7 +60,7 @@ THREE.CubeGeometry = function ( width, height, depth, segmentsWidth, segmentsHei
 	this.sides.pz && buildPlane( 'x', 'y',   1 * flip, - 1, width, height, depth_half, this.materials[ 4 ] );   // pz
 	this.sides.nz && buildPlane( 'x', 'y', - 1 * flip, - 1, width, height, - depth_half, this.materials[ 5 ] ); // nz
 	
-	THREE.Geometry.prototype.mergeVertices.call(this);
+	this.mergeVertices();
 
 	function buildPlane( u, v, udir, vdir, width, height, depth, material ) {