Browse Source

Fixed BoxHelper update.

Mr.doob 11 years ago
parent
commit
4d3e7913f5
1 changed files with 1 additions and 1 deletions
  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[ 66 ] = max.x; vertices[ 67 ] = min.y; vertices[ 68 ] = max.z;
 	vertices[ 69 ] = max.x; vertices[ 70 ] = min.y; vertices[ 71 ] = min.z;
 	vertices[ 69 ] = max.x; vertices[ 70 ] = min.y; vertices[ 71 ] = min.z;
 
 
+	this.geometry.attributes.position.needsUpdate = true;
 
 
 	this.geometry.computeBoundingSphere();
 	this.geometry.computeBoundingSphere();
-	this.geometry.verticesNeedUpdate = true;
 
 
 	this.matrixAutoUpdate = false;
 	this.matrixAutoUpdate = false;
 	this.matrixWorld = object.matrixWorld;
 	this.matrixWorld = object.matrixWorld;