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: [PATCH] config/lua: cannot disable animation (#14215) * config/lua: cannot disable animation seems regression from 9ee5ff1f7181cc5fa575f1702802ccb78c21ba12 * typing typo (auto generated by cmake) --- meta/hl.meta.lua | 2 +- src/managers/animation/AnimationManager.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/meta/hl.meta.lua b/meta/hl.meta.lua index 64f49b2ae..038c066b7 100644 --- a/meta/hl.meta.lua +++ b/meta/hl.meta.lua @@ -676,7 +676,7 @@ local __HL_Notification = {} local __HL_Timer = {} ---@class HL.Window ----@field acceptsInput boolean +---@field accepts_input boolean ---@field active boolean|nil ---@field address string ---@field at integer|table diff --git a/src/managers/animation/AnimationManager.cpp b/src/managers/animation/AnimationManager.cpp index c5c3ca542..76a124656 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(); }