Browse Source
Merge pull request #9646 from adirh3/fix_animations_render
Fixed animations causing unnecessary rendering
pull/9665/head
Max Katz
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
0 deletions
-
src/Avalonia.Base/Rendering/Composition/Animations/KeyFrameAnimationInstance.cs
|
|
@ -175,6 +175,10 @@ namespace Avalonia.Rendering.Composition.Animations |
|
|
|
|
|
|
|
|
public override void Activate() |
|
|
public override void Activate() |
|
|
{ |
|
|
{ |
|
|
|
|
|
if (_finished) |
|
|
|
|
|
{ |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
TargetObject.Compositor.AddToClock(this); |
|
|
TargetObject.Compositor.AddToClock(this); |
|
|
base.Activate(); |
|
|
base.Activate(); |
|
|
} |
|
|
} |
|
|
|