Browse Source

add makeEmpty again

sunag 8 năm trước cách đây
mục cha
commit
81e173ab23
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      src/math/Box3.js

+ 2 - 0
src/math/Box3.js

@@ -96,6 +96,8 @@ Box3.prototype = {
 
 	setFromPoints: function ( points ) {
 
+		this.makeEmpty();
+
 		for ( var i = 0, il = points.length; i < il; i ++ ) {
 
 			this.expandByPoint( points[ i ] );