浏览代码

Box3: Minor clean up.

Mr.doob 7 年之前
父节点
当前提交
486fe7266e
共有 1 个文件被更改,包括 3 次插入5 次删除
  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;