Преглед изворни кода

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

Mr.doob пре 14 година
родитељ
комит
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 };
 
 };

粤ICP备19079148号