Browse Source

Box3: Minor clean up.

Mr.doob 7 năm trước cách đây
mục cha
commit
486fe7266e
1 tập tin đã thay đổi với 3 bổ sung5 xóa
  1. 3 5
      src/math/Box3.js

+ 3 - 5
src/math/Box3.js

@@ -209,13 +209,11 @@ Object.assign( Box3.prototype, {
 		// Computes the world-axis-aligned bounding box of an object (including its children),
 		// accounting for both the object's, and children's, world transforms
 
-		var v1 = new Vector3();
-
-		var scope;
+		var scope, i, l;
 
-		function traverse ( node ) {
+		var v1 = new Vector3();
 
-			var i, l;
+		function traverse( node ) {
 
 			var geometry = node.geometry;