mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-16 21:40:41 +00:00
修复Editor下Serie的Data在多维数据下编辑异常的问题#62
This commit is contained in:
@@ -28,7 +28,7 @@ namespace XCharts
|
||||
SerializedProperty m_DataChangeEnable = prop.FindPropertyRelative("m_DataChangeEnable");
|
||||
SerializedProperty m_DataChangeDuration = prop.FindPropertyRelative("m_DataChangeDuration");
|
||||
SerializedProperty m_FadeInDelay = prop.FindPropertyRelative("m_FadeInDelay");
|
||||
SerializedProperty m_Threshold = prop.FindPropertyRelative("m_Threshold");
|
||||
//SerializedProperty m_Threshold = prop.FindPropertyRelative("m_Threshold");
|
||||
SerializedProperty m_ActualDuration = prop.FindPropertyRelative("m_ActualDuration");
|
||||
SerializedProperty m_FadeOutDelay = prop.FindPropertyRelative("m_FadeOutDelay");
|
||||
// SerializedProperty m_CurrDetailProgress = prop.FindPropertyRelative("m_CurrDetailProgress");
|
||||
|
||||
@@ -449,7 +449,8 @@ namespace XCharts
|
||||
var xWid = dataWid - 4;
|
||||
for (int i = 0; i < dimension; i++)
|
||||
{
|
||||
while (i > data.arraySize - 1)
|
||||
var dataCount = i < 1 ? 2 : i + 1;
|
||||
while (dataCount > data.arraySize)
|
||||
{
|
||||
data.InsertArrayElementAtIndex(data.arraySize);
|
||||
data.GetArrayElementAtIndex(data.arraySize - 1).floatValue = 0;
|
||||
|
||||
Reference in New Issue
Block a user