Merge pull request #786 from ousttrue/fix/texture_import

fix runtime texture import
This commit is contained in:
PoChang007
2021-03-16 15:02:15 +09:00
committed by GitHub

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;
}
}