mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-07-19 00:31:52 -05:00
Merge pull request #786 from ousttrue/fix/texture_import
fix runtime texture import
This commit is contained in:
commit
4a040da8e0
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user