Explorar o código

add makeEmpty again

sunag %!s(int64=8) %!d(string=hai) anos
pai
achega
81e173ab23
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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 ] );