Browse Source

GLTFExporter: Replace WeakMap with Map.

Takahiro 7 years ago
parent
commit
0a8ed3d83c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      examples/js/exporters/GLTFExporter.js

+ 2 - 2
examples/js/exporters/GLTFExporter.js

@@ -102,8 +102,8 @@ THREE.GLTFExporter.prototype = {
 		var skins = [];
 		var cachedData = {
 
-			materials: new WeakMap(),
-			textures: new WeakMap()
+			materials: new Map(),
+			textures: new Map()
 
 		};