Browse Source

GLTFExporter: Remove image cache.

Takahiro 7 years ago
parent
commit
81aef3919b
1 changed files with 1 additions and 11 deletions
  1. 1 11
      examples/js/exporters/GLTFExporter.js

+ 1 - 11
examples/js/exporters/GLTFExporter.js

@@ -98,7 +98,6 @@ THREE.GLTFExporter.prototype = {
 		var skins = [];
 		var skins = [];
 		var cachedData = {
 		var cachedData = {
 
 
-			images: {},
 			materials: {},
 			materials: {},
 			textures: {}
 			textures: {}
 
 
@@ -449,12 +448,6 @@ THREE.GLTFExporter.prototype = {
 		 */
 		 */
 		function processImage( map ) {
 		function processImage( map ) {
 
 
-			if ( cachedData.images[ map.uuid ] !== undefined ) {
-
-				return cachedData.images[ map.uuid ];
-
-			}
-
 			if ( ! outputJSON.images ) {
 			if ( ! outputJSON.images ) {
 
 
 				outputJSON.images = [];
 				outputJSON.images = [];
@@ -492,10 +485,7 @@ THREE.GLTFExporter.prototype = {
 
 
 			outputJSON.images.push( gltfImage );
 			outputJSON.images.push( gltfImage );
 
 
-			var index = outputJSON.images.length - 1;
-			cachedData.images[ map.uuid ] = index;
-
-			return index;
+			return outputJSON.images.length - 1;
 
 
 		}
 		}