mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-09-11 21:38:56 -05:00
fix TryGetExternal
This commit is contained in:
@@ -131,15 +131,14 @@ namespace UniGLTF
|
||||
/// <returns></returns>
|
||||
public async Awaitable<Texture2D> GetTextureAsync(glTF gltf, GetTextureParam param)
|
||||
{
|
||||
if (TryGetExternal(param, true, out Texture2D external))
|
||||
{
|
||||
return external;
|
||||
}
|
||||
|
||||
if (m_textureCache.TryGetValue(param, out TextureLoadInfo cacheInfo))
|
||||
{
|
||||
return cacheInfo.Texture;
|
||||
}
|
||||
if (TryGetExternal(param, true, out Texture2D external))
|
||||
{
|
||||
return external;
|
||||
}
|
||||
|
||||
switch (param.TextureType)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user