修复波浪动画效果不正确的渲染

This commit is contained in:
polarboy 2024-07-01 10:58:03 +08:00
parent 3cfd001ebc
commit bcf64fa824
2 changed files with 5 additions and 0 deletions

View File

@ -81,6 +81,7 @@ internal class RoundRectWavePainter : AbstractWavePainter
{
animation.Duration = SizeMotionDuration;
animation.Easing = SizeEasingCurve;
Console.WriteLine($"NotifyBuildSizeAnimation-{OriginSize}");
animation.Children.Add(new KeyFrame
{
Setters =

View File

@ -184,6 +184,10 @@ internal class WaveSpiritAdorner : Control
public sealed override void Render(DrawingContext context)
{
// TODO 有时候会被合成器触发渲染
if (!IsPlaying) {
return;
}
object currentSize = default!;
if (_wavePainter.WaveType == WaveType.CircleWave) {
currentSize = LastWaveRadius;