Explorar o código

Box3: chain method calls in .setFromObject()

Mugen87 %!s(int64=8) %!d(string=hai) anos
pai
achega
86efe92bb2
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  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 );