Răsfoiți Sursa

BoxHelper: Compute bounding sphere if geometry changed

Mugen87 9 ani în urmă
părinte
comite
994cdf61a9
1 a modificat fișierele cu 2 adăugiri și 0 ștergeri
  1. 2 0
      src/helpers/BoxHelper.js

+ 2 - 0
src/helpers/BoxHelper.js

@@ -82,6 +82,8 @@ BoxHelper.prototype.update = ( function () {
 
 		position.needsUpdate = true;
 
+		this.geometry.computeBoundingSphere();
+
 		return this;
 
 	};

粤ICP备19079148号