瀏覽代碼

Box3: chain method calls in .setFromObject()

Mugen87 8 年之前
父節點
當前提交
86efe92bb2
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      src/math/Box3.js

+ 1 - 2
src/math/Box3.js

@@ -165,8 +165,7 @@ Box3.prototype = {
 
 
 							for ( i = 0, l = attribute.count; i < l; i ++ ) {
 							for ( i = 0, l = attribute.count; i < l; i ++ ) {
 
 
-								v1.fromAttribute( attribute, i );
-								v1.applyMatrix4( node.matrixWorld );
+								v1.fromAttribute( attribute, i ).applyMatrix4( node.matrixWorld );
 
 
 								scope.expandByPoint( v1 );
 								scope.expandByPoint( v1 );