Browse Source

Box3: chain method calls in .setFromObject()

Mugen87 8 năm trước cách đây
mục cha
commit
86efe92bb2
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  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 ++ ) {
 
-								v1.fromAttribute( attribute, i );
-								v1.applyMatrix4( node.matrixWorld );
+								v1.fromAttribute( attribute, i ).applyMatrix4( node.matrixWorld );
 
 								scope.expandByPoint( v1 );