修复settings的lineSmoothness用代码设置无效的问题

This commit is contained in:
monitor1394
2023-12-14 19:33:11 +08:00
parent 9d2b14afef
commit 9c5b83dc22

View File

@@ -93,7 +93,7 @@ namespace XCharts.Runtime
public float lineSmoothness public float lineSmoothness
{ {
get { return m_LineSmoothness; } get { return m_LineSmoothness; }
set { if (PropertyUtil.SetStruct(ref m_LineSmoothStyle, value < 0 ? 1f : value)) SetVerticesDirty(); } set { if (PropertyUtil.SetStruct(ref m_LineSmoothness, value < 0 ? 1f : value)) SetVerticesDirty(); }
} }
/// <summary> /// <summary>
/// The partition distance of a line segment. A line in a normal line chart is made up of many segments, /// The partition distance of a line segment. A line in a normal line chart is made up of many segments,