Преглед на файлове

Added computeCentroids() call to PolyhedronGeometry. Fixes #1589.

Mr.doob преди 13 години
родител
ревизия
767a584df9
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 2 0
      src/extras/geometries/PolyhedronGeometry.js

+ 2 - 0
src/extras/geometries/PolyhedronGeometry.js

@@ -130,6 +130,8 @@ THREE.PolyhedronGeometry = function ( vertices, faces, radius, detail ) {
 
 	}
 
+	this.computeCentroids();
+
 	this.boundingSphere = { radius: radius };
 
 };