Explorar el Código

Export gltfExtensions as extras when includeCustomExtensions is false.

Robert Long hace 6 años
padre
commit
79a56e692e
Se han modificado 1 ficheros con 2 adiciones y 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 ) {