ソースを参照

add makeEmpty again

sunag 8 年 前
コミット
81e173ab23
1 ファイル変更2 行追加0 行削除
  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 ] );