Ver Fonte

add makeEmpty again

sunag há 8 anos atrás
pai
commit
81e173ab23
1 ficheiros alterados com 2 adições e 0 exclusões
  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 ] );