修复Animation无法通过代码开启的问题 (#334)

This commit is contained in:
monitor1394
2024-11-16 17:22:40 +08:00
parent 0a923400b2
commit 61fb717d20
2 changed files with 2 additions and 2 deletions

View File

@@ -2007,7 +2007,7 @@ namespace XCharts.Runtime
/// </summary>
public void AnimationEnable(bool flag)
{
if (!animation.enable)
if (animation.enable != flag)
{
animation.enable = flag;
SetVerticesDirty();