summaryrefslogtreecommitdiff
path: root/src/managers/AnimationManager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/managers/AnimationManager.cpp')
-rw-r--r--src/managers/AnimationManager.cpp5
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();