Просмотр исходного кода

BoxHelper: Compute bounding sphere if geometry changed

Mugen87 8 лет назад
Родитель
Сommit
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;
 
 	};

粤ICP备19079148号