Sfoglia il codice sorgente

GLTFExporter: Clean up.

Mr.doob 6 anni fa
parent
commit
79504608a4
1 ha cambiato i file con 4 aggiunte e 2 eliminazioni
  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 ] ) ) {