From 9dc9366fc65ca8b4f18f6554d0b147baceda01f0 Mon Sep 17 00:00:00 2001 From: vaxerski Date: Thu, 9 Jan 2025 22:08:16 +0100 Subject: [PATCH] config: fix animations requiring all args fixes #9009 --- src/config/ConfigManager.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index def15f26..b575a167 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -2053,6 +2053,11 @@ std::optional CConfigManager::handleAnimation(const std::string& co if (enabledInt != 0 && enabledInt != 1) return "invalid animation on/off state"; + if (!enabledInt) { + m_AnimationTree.setConfigForNode(ANIMNAME, enabledInt, 1, "default"); + return {}; + } + int64_t speed = -1; // speed