Updated Points to always be an array of 1 when set to nothing.
Resolves: https://github.com/Unity-UI-Extensions/com.unity.uiextensions/issues/295pull/413/head
parent
c08a91f421
commit
00b67b7046
|
@ -111,10 +111,18 @@ namespace UnityEngine.UI.Extensions
|
|||
|
||||
set
|
||||
{
|
||||
if (m_points == value)
|
||||
return;
|
||||
m_points = value;
|
||||
SetAllDirty();
|
||||
if (m_points == value) return;
|
||||
|
||||
if (value == null || value.Length == 0)
|
||||
{
|
||||
m_points = new Vector2[1];
|
||||
}
|
||||
else
|
||||
{
|
||||
m_points = value;
|
||||
}
|
||||
|
||||
SetAllDirty();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue