diff --git a/Assets/UniGLTF/Runtime/UniGLTF/IO/TextureLoader/TextureFactory.cs b/Assets/UniGLTF/Runtime/UniGLTF/IO/TextureLoader/TextureFactory.cs index b695d701f..de8a409f1 100644 --- a/Assets/UniGLTF/Runtime/UniGLTF/IO/TextureLoader/TextureFactory.cs +++ b/Assets/UniGLTF/Runtime/UniGLTF/IO/TextureLoader/TextureFactory.cs @@ -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; } }