From d40860e8e27c2abc50cebaae56e16b4ac10af667 Mon Sep 17 00:00:00 2001 From: phanium <91544758+phanen@users.noreply.github.com> Date: Thu, 30 Apr 2026 19:53:51 +0800 Subject: config/lua: cannot disable animation (#14215) * config/lua: cannot disable animation seems regression from 9ee5ff1f7181cc5fa575f1702802ccb78c21ba12 * typing typo (auto generated by cmake) --- src/managers/animation/AnimationManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/managers/animation/AnimationManager.cpp') diff --git a/src/managers/animation/AnimationManager.cpp b/src/managers/animation/AnimationManager.cpp index c5c3ca54..76a12465 100644 --- a/src/managers/animation/AnimationManager.cpp +++ b/src/managers/animation/AnimationManager.cpp @@ -142,9 +142,9 @@ static void handleUpdate(CAnimatedVariable& av, bool warp) { const auto STEP = av.getCurveStep(); if constexpr (std::same_as) - updateColorVariable(av, STEP.value, STEP.finished); + updateColorVariable(av, STEP.value, STEP.finished || animationsDisabled); else - updateVariable(av, STEP.value, STEP.finished); + updateVariable(av, STEP.value, STEP.finished || animationsDisabled); av.onUpdate(); } -- cgit v1.2.3