瀏覽代碼

GLTFExporter: Clean up.

Mr.doob 6 年之前
父節點
當前提交
79504608a4
共有 1 個文件被更改,包括 4 次插入2 次删除
  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 ] ) ) {