Преглед на файлове

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 ++ ) {
 
-								v1.fromAttribute( attribute, i );
-								v1.applyMatrix4( node.matrixWorld );
+								v1.fromAttribute( attribute, i ).applyMatrix4( node.matrixWorld );
 
 								scope.expandByPoint( v1 );