Browse Source

bugfix issue #38

Removed recursive serialization of texture
Daniel 9 years ago
parent
commit
3a68d62a68
1 changed files with 0 additions and 5 deletions
  1. 0 5
      editor/js/CmdSetMaterialMap.js

+ 0 - 5
editor/js/CmdSetMaterialMap.js

@@ -31,13 +31,8 @@ CmdSetMaterialMap = function ( object, mapName, newMap ) {
 		};
 		};
 
 
 		var json = map.toJSON( meta );
 		var json = map.toJSON( meta );
-
-		var textures = extractFromCache( meta.textures );
 		var images = extractFromCache( meta.images );
 		var images = extractFromCache( meta.images );
-
-		if ( textures.length > 0 ) json.textures = textures;
 		if ( images.length > 0 ) json.images = images;
 		if ( images.length > 0 ) json.images = images;
-
 		json.sourceFile = map.sourceFile;
 		json.sourceFile = map.sourceFile;
 
 
 		return json;
 		return json;