فهرست منبع

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

Mr.doob 11 سال پیش
والد
کامیت
f2b9ad4cf0
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 2 0
      src/core/BufferGeometry.js

+ 2 - 0
src/core/BufferGeometry.js

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