2
0
Эх сурвалжийг харах

BufferGeometry: Added box.makeEmpty() in computeBoundingSphere. Fixes #4277.

Mr.doob 12 жил өмнө
parent
commit
f2b9ad4cf0

+ 2 - 0
src/core/BufferGeometry.js

@@ -167,6 +167,8 @@ THREE.BufferGeometry.prototype = {
 
 
 			if ( positions ) {
 			if ( positions ) {
 
 
+				box.makeEmpty();
+
 				var center = this.boundingSphere.center;
 				var center = this.boundingSphere.center;
 
 
 				for ( var i = 0, il = positions.length; i < il; i += 3 ) {
 				for ( var i = 0, il = positions.length; i < il; i += 3 ) {