mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-24 01:40:06 +00:00
优化代码
This commit is contained in:
@@ -279,6 +279,10 @@ namespace XCharts
|
||||
serie.animation.Restart();
|
||||
if (addToHead) m_Series.Insert(0, serie);
|
||||
else m_Series.Add(serie);
|
||||
for (int i = 0; i < m_Series.Count; i++)
|
||||
{
|
||||
m_Series[i].index = i;
|
||||
}
|
||||
SetVerticesDirty();
|
||||
return serie;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user