fix: setting gradationScale to 0 throws DivideByZeroException

This commit is contained in:
mob-sakai
2025-06-02 17:13:54 +09:00
parent 58b197e551
commit ecd265e482
+1
View File
@@ -1263,6 +1263,7 @@ namespace Coffee.UIEffects
get => m_GradationScale;
set
{
value = Mathf.Clamp(value, 0.01f, 10f);
if (Mathf.Approximately(m_GradationScale, value)) return;
context.m_GradationScale = m_GradationScale = value;
SetMaterialDirty();