소스 검색

Export gltfExtensions as extras when includeCustomExtensions is false.

Robert Long 6 년 전
부모
커밋
79a56e692e
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      examples/js/exporters/GLTFExporter.js

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

@@ -361,9 +361,9 @@ THREE.GLTFExporter.prototype = {
 
 					}
 
-				}
+					delete json.gltfExtensions;
 
-				delete json.gltfExtensions;
+				}
 
 				if ( Object.keys( json ).length > 0 ) {