From 014bba3f5687ecfe41caa00d454f196baf7e3483 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=ED=98=95=EA=B5=B0?= Date: Wed, 26 Aug 2026 12:05:44 +0900 Subject: [PATCH] fix: ignore shader registry order changes close #407 --- .../src/Runtime/Internal/Utilities/ShaderVariantRegistry.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Packages/src/Runtime/Internal/Utilities/ShaderVariantRegistry.cs b/Packages/src/Runtime/Internal/Utilities/ShaderVariantRegistry.cs index f51d4d6..862514b 100644 --- a/Packages/src/Runtime/Internal/Utilities/ShaderVariantRegistry.cs +++ b/Packages/src/Runtime/Internal/Utilities/ShaderVariantRegistry.cs @@ -288,8 +288,10 @@ namespace Coffee.UIEffectInternal .Distinct() .ToList(); - // If the registered shaders are already in sync with the SVC, no need to update. - if (m_RegisteredShaders.SequenceEqual(shadersInSVC)) + // ShaderVariantCollection entry order is not stable between editor sessions. + // The registry is a lookup set, so an order-only difference is already in sync. + if (m_RegisteredShaders.Count == shadersInSVC.Count && + new HashSet(m_RegisteredShaders).SetEquals(shadersInSVC)) { return; }