animation: don't immediately disconnect active vars during tick (#9272)
This commit is contained in:
parent
d11d069715
commit
5b43c106bd
2 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue