mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-09-08 20:08:53 -05:00
m_textureCache のキーが重複しないか確認する
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user