mirror of
https://github.com/mob-sakai/UIEffect.git
synced 2026-11-19 17:22:37 +08:00
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user