浏览代码

GLTFExporter: Replace WeakMap with Map.

Takahiro 7 年之前
父节点
当前提交
0a8ed3d83c
共有 1 个文件被更改,包括 2 次插入2 次删除
  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()
 
 		};