config: fix animations requiring all args

fixes #9009
This commit is contained in:
Vaxry 2025-01-09 22:08:16 +01:00
parent 85aba23cbe
commit 9dc9366fc6

View file

@ -2053,6 +2053,11 @@ std::optional<std::string> 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