core: minor fixes for animation rewrite

This commit is contained in:
vaxerski
2025-01-07 20:30:44 +01:00
parent c143907857
commit 308b1f3afb
2 changed files with 3 additions and 4 deletions

View File

@@ -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();