From 1807e7c5ff315ef68bac09c07905d6e00dccc3bb Mon Sep 17 00:00:00 2001 From: Sinai <49360850+sinai-dev@users.noreply.github.com> Date: Sun, 21 Mar 2021 15:16:36 +1100 Subject: [PATCH] Update TextureUtilProvider.cs --- src/Core/Runtime/TextureUtilProvider.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Core/Runtime/TextureUtilProvider.cs b/src/Core/Runtime/TextureUtilProvider.cs index a3967a5..16b5c3c 100644 --- a/src/Core/Runtime/TextureUtilProvider.cs +++ b/src/Core/Runtime/TextureUtilProvider.cs @@ -55,7 +55,7 @@ namespace UnityExplorer.Core.Runtime { Color[] pixels; - if (IsReadable(orig)) + if (!IsReadable(orig)) orig = ForceReadTexture(orig); pixels = orig.GetPixels((int)rect.x, (int)rect.y, (int)rect.width, (int)rect.height);