From e99e7e198245f4ceac6092106cd1444557a1a711 Mon Sep 17 00:00:00 2001 From: PPY Date: Wed, 22 Jul 2020 23:57:29 +0800 Subject: [PATCH] fix: wrong return value in ShaderStripperPath ShaderStripperPath.MatchShader should return false after all matches evaluated to false --- ShaderStripperPath.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ShaderStripperPath.cs b/ShaderStripperPath.cs index 2cc8cc2..873308f 100644 --- a/ShaderStripperPath.cs +++ b/ShaderStripperPath.cs @@ -29,9 +29,9 @@ protected override bool MatchShader(Shader shader){ foreach (var p in _pathBlacklist){ if (p.Evaluate(path)) return true; } - return true; + return false; } #endif } } -#endif \ No newline at end of file +#endif