fix: ignore shader registry order changes

close #407
This commit is contained in:
형군
2026-08-26 12:05:44 +09:00
committed by mob-sakai
parent f533d02977
commit 014bba3f56
@@ -288,8 +288,10 @@ namespace Coffee.UIEffectInternal
.Distinct() .Distinct()
.ToList(); .ToList();
// If the registered shaders are already in sync with the SVC, no need to update. // ShaderVariantCollection entry order is not stable between editor sessions.
if (m_RegisteredShaders.SequenceEqual(shadersInSVC)) // The registry is a lookup set, so an order-only difference is already in sync.
if (m_RegisteredShaders.Count == shadersInSVC.Count &&
new HashSet<Shader>(m_RegisteredShaders).SetEquals(shadersInSVC))
{ {
return; return;
} }