Browse Source

Export gltfExtensions as extras when includeCustomExtensions is false.

Robert Long 6 years ago
parent
commit
79a56e692e
1 changed files with 2 additions and 2 deletions
  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 ) {