m_textureCache のキーが重複しないか確認する

This commit is contained in:
ousttrue
2021-03-16 14:52:33 +09:00
parent a7c453bbd6
commit 700773f2a9

View File

@@ -59,7 +59,10 @@ namespace UniGLTF
if (m_externalMap.TryGetValue(cacheName, out external))
{
m_textureCache.Add(cacheName, new TextureLoadInfo(external, used, true));
if (!m_textureCache.ContainsKey(cacheName))
{
m_textureCache.Add(cacheName, new TextureLoadInfo(external, used, true));
}
return external;
}
}