浏览代码

BoxHelper: Compute bounding sphere if geometry changed

Mugen87 8 年之前
父节点
当前提交
994cdf61a9
共有 1 个文件被更改,包括 2 次插入0 次删除
  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;
 
 	};