diff options
| author | vaxerski <vaxry@vaxry.net> | 2025-01-07 20:30:44 +0100 |
|---|---|---|
| committer | vaxerski <vaxry@vaxry.net> | 2025-01-07 20:30:44 +0100 |
| commit | 308b1f3afbb150fa008e3147faeee5d3ba7e6876 (patch) | |
| tree | 2d56d6aa6fe554bf526d57a11d22e4ff00239846 /src/managers/AnimationManager.cpp | |
| parent | c14390785745972903865c824fd324aa708f296a (diff) | |
core: minor fixes for animation rewrite
Diffstat (limited to 'src/managers/AnimationManager.cpp')
| -rw-r--r-- | src/managers/AnimationManager.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/managers/AnimationManager.cpp b/src/managers/AnimationManager.cpp index 6bfeed83..c1ea1d27 100644 --- a/src/managers/AnimationManager.cpp +++ b/src/managers/AnimationManager.cpp @@ -147,11 +147,10 @@ static void handleUpdate(CAnimatedVariable<VarType>& av, bool warp) { const auto PBEZIER = g_pAnimationManager->getBezier(av.getBezierName()); const auto POINTY = PBEZIER->getYForPoint(SPENT); - if constexpr (std::same_as<VarType, CHyprColor>) { + if constexpr (std::same_as<VarType, CHyprColor>) updateColorVariable(av, POINTY, animationsDisabled); - } else { + else updateVariable<VarType>(av, POINTY, animationsDisabled); - } av.onUpdate(); |
