Browse Source

Removed outdated code

Benjamin MICHEL 5 years ago
parent
commit
76bc5463bc
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

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

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

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