修复Animation无法通过代码开启的问题

This commit is contained in:
monitor1394
2024-11-16 17:18:06 +08:00
parent 7fb0765c6c
commit 0a923400b2
2 changed files with 6 additions and 2 deletions

View File

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