Browse Source

Merge pull request #18589 from habx/fix/gltf-exporter-scene-userdata

Remove outdated serializeUserData call in GLTFExporter
Mr.doob 5 years ago
parent
commit
7fc5058f83
2 changed files with 0 additions and 12 deletions
  1. 0 6
      examples/js/exporters/GLTFExporter.js
  2. 0 6
      examples/jsm/exporters/GLTFExporter.js

+ 0 - 6
examples/js/exporters/GLTFExporter.js

@@ -1906,12 +1906,6 @@ THREE.GLTFExporter.prototype = {
 
 			}
 
-			if ( scene.userData && Object.keys( scene.userData ).length > 0 ) {
-
-				gltfScene.extras = serializeUserData( scene );
-
-			}
-
 			outputJSON.scenes.push( gltfScene );
 
 			var nodes = [];

+ 0 - 6
examples/jsm/exporters/GLTFExporter.js

@@ -1928,12 +1928,6 @@ GLTFExporter.prototype = {
 
 			}
 
-			if ( scene.userData && Object.keys( scene.userData ).length > 0 ) {
-
-				gltfScene.extras = serializeUserData( scene );
-
-			}
-
 			outputJSON.scenes.push( gltfScene );
 
 			var nodes = [];