From 7e339002a31c15a1e34f6cd8761e10efccdcbe3b Mon Sep 17 00:00:00 2001 From: FS <47338369+TCOSFS@users.noreply.github.com> Date: Mon, 15 Aug 2022 21:34:30 -0500 Subject: [PATCH] Woops, that brokey --- VRCPlates/NameplateManager.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/VRCPlates/NameplateManager.cs b/VRCPlates/NameplateManager.cs index 4bef985..9d5c562 100644 --- a/VRCPlates/NameplateManager.cs +++ b/VRCPlates/NameplateManager.cs @@ -91,13 +91,14 @@ private static IEnumerator ImageRequestLoop() } else { + var tex = ((DownloadHandlerTexture) uwr.downloadHandler).texture; + _imageCache?.Add(pair.Key, tex); foreach (var im in pair.Value) { - im.texture = ((DownloadHandlerTexture) uwr.downloadHandler).texture; + im.texture = tex; im.transform.parent.gameObject.SetActive(true); } } - _imageCache?.Add(pair.Key, ((DownloadHandlerTexture) uwr.downloadHandler).texture); _imageQueue.Remove(pair.Key); uwr.Dispose(); }