소스 검색

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 ] ) ) {