Explorar o código

GLTFExporter: Clean up.

Mr.doob %!s(int64=6) %!d(string=hai) anos
pai
achega
79504608a4
Modificáronse 1 ficheiros con 4 adicións e 2 borrados
  1. 4 2
      examples/js/exporters/GLTFExporter.js

+ 4 - 2
examples/js/exporters/GLTFExporter.js

@@ -1740,8 +1740,10 @@ THREE.GLTFExporter.prototype = {
 
 			} else {
 
-				if (object.matrixAutoUpdate) {
-						object.updateMatrix();
+				if ( object.matrixAutoUpdate ) {
+
+					object.updateMatrix();
+
 				}
 
 				if ( ! equalArray( object.matrix.elements, [ 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 ] ) ) {