Browse Source

BoxHelper: Compute bounding sphere if geometry changed

Mugen87 8 years ago
parent
commit
994cdf61a9
1 changed files with 2 additions and 0 deletions
  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;
 
 	};