Procházet zdrojové kódy

Compute flat normals when detail is zero

WestLangley před 8 roky
rodič
revize
5c521f8da5
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/geometries/PolyhedronGeometry.js

+ 1 - 1
src/geometries/PolyhedronGeometry.js

@@ -77,7 +77,7 @@ function PolyhedronBufferGeometry( vertices, indices, radius, detail ) {
 
 	if ( detail === 0 ) {
 
-		BufferGeometry.prototype.computeVertexNormals.call( this ); // flat normals
+		this.computeVertexNormals(); // flat normals
 
 	} else {