From 0c5578bda36b1c530cccfb19456c47182444faf2 Mon Sep 17 00:00:00 2001 From: mob-sakai Date: Tue, 28 Jan 2020 19:23:33 +0900 Subject: [PATCH] fix: Projection Matrix check always true when using world space canvas --- .../Coffee/UIExtensions/SoftMaskForUGUI/Scripts/SoftMask.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Assets/Coffee/UIExtensions/SoftMaskForUGUI/Scripts/SoftMask.cs b/Assets/Coffee/UIExtensions/SoftMaskForUGUI/Scripts/SoftMask.cs index a65fbfa..af94d4f 100755 --- a/Assets/Coffee/UIExtensions/SoftMaskForUGUI/Scripts/SoftMask.cs +++ b/Assets/Coffee/UIExtensions/SoftMaskForUGUI/Scripts/SoftMask.cs @@ -485,15 +485,12 @@ namespace Coffee.UIExtensions } } - -#if !UNITY_2018_1_OR_NEWER s_previousViewProjectionMatrices.Clear (); - foreach (int id in s_previousViewProjectionMatrices.Keys) + foreach (int id in s_nowViewProjectionMatrices.Keys) { s_previousViewProjectionMatrices [id] = s_nowViewProjectionMatrices [id]; } s_nowViewProjectionMatrices.Clear (); -#endif } ///