diff --git a/src/Avalonia.Base/Rendering/Composition/Server/ServerObject.cs b/src/Avalonia.Base/Rendering/Composition/Server/ServerObject.cs index dde711c3b5..f55c9439e4 100644 --- a/src/Avalonia.Base/Rendering/Composition/Server/ServerObject.cs +++ b/src/Avalonia.Base/Rendering/Composition/Server/ServerObject.cs @@ -92,15 +92,13 @@ namespace Avalonia.Rendering.Composition.Server public void SubscribeToInvalidation(int member, IAnimationInstance animation) { ref var store = ref GetStoreFromOffset(member); - if (store.Subscribers.AddRef(animation)) - Activate(); + store.Subscribers.AddRef(animation); } public void UnsubscribeFromInvalidation(int member, IAnimationInstance animation) { ref var store = ref GetStoreFromOffset(member); - if (store.Subscribers.ReleaseRef(animation)) - Deactivate(); + store.Subscribers.ReleaseRef(animation); } public virtual int? GetFieldOffset(string fieldName) => null;