浏览代码

Fixed BoxHelper update.

Mr.doob 11 年之前
父节点
当前提交
4d3e7913f5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/extras/helpers/BoxHelper.js

+ 1 - 1
src/extras/helpers/BoxHelper.js

@@ -91,9 +91,9 @@ THREE.BoxHelper.prototype.update = function ( object ) {
 	vertices[ 66 ] = max.x; vertices[ 67 ] = min.y; vertices[ 68 ] = max.z;
 	vertices[ 69 ] = max.x; vertices[ 70 ] = min.y; vertices[ 71 ] = min.z;
 
+	this.geometry.attributes.position.needsUpdate = true;
 
 	this.geometry.computeBoundingSphere();
-	this.geometry.verticesNeedUpdate = true;
 
 	this.matrixAutoUpdate = false;
 	this.matrixWorld = object.matrixWorld;