Explorar o código

Compute flat normals when detail is zero

WestLangley %!s(int64=8) %!d(string=hai) anos
pai
achega
5c521f8da5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 {