diff options
| author | Maximilian Seidler <78690852+PaideiaDilemma@users.noreply.github.com> | 2025-02-01 14:44:20 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-01 15:44:20 +0100 |
| commit | 5b43c106bd1cde9ac0b5626130890cde4de0b245 (patch) | |
| tree | 2f0e88d4a7d713e761b84d9476162dee1252bad7 /src/managers/AnimationManager.cpp | |
| parent | d11d0697155e0896c4ab76406e6d5dcf35abff05 (diff) | |
animation: don't immediately disconnect active vars during tick (#9272)
Diffstat (limited to 'src/managers/AnimationManager.cpp')
| -rw-r--r-- | src/managers/AnimationManager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/managers/AnimationManager.cpp b/src/managers/AnimationManager.cpp index 5be7aa33..29f669dc 100644 --- a/src/managers/AnimationManager.cpp +++ b/src/managers/AnimationManager.cpp @@ -43,7 +43,7 @@ CHyprAnimationManager::CHyprAnimationManager() { template <Animable VarType> static void updateVariable(CAnimatedVariable<VarType>& av, const float POINTY, bool warp = false) { if (warp || av.value() == av.goal()) { - av.warp(); + av.warp(true, false); return; } @@ -53,7 +53,7 @@ static void updateVariable(CAnimatedVariable<VarType>& av, const float POINTY, b static void updateColorVariable(CAnimatedVariable<CHyprColor>& av, const float POINTY, bool warp) { if (warp || av.value() == av.goal()) { - av.warp(); + av.warp(true, false); return; } |
