Jelajahi Sumber

Box3: chain method calls in .setFromObject()

Mugen87 8 tahun lalu
induk
melakukan
86efe92bb2
1 mengubah file dengan 1 tambahan dan 2 penghapusan
  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 );