Explorar o código

Export gltfExtensions as extras when includeCustomExtensions is false.

Robert Long %!s(int64=6) %!d(string=hai) anos
pai
achega
79a56e692e
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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 ) {