animation: don't immediately disconnect active vars during tick (#9272)

This commit is contained in:
Maximilian Seidler
2025-02-01 14:44:20 +00:00
committed by GitHub
parent d11d069715
commit 5b43c106bd
2 changed files with 3 additions and 3 deletions

View File

@@ -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;
}