config: make sure disabled animation don't need a valid speed or bezier (#698)

This commit is contained in:
Maximilian Seidler 2025-03-05 08:05:19 +01:00 committed by GitHub
parent e588351d1d
commit 712ab62a42
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -603,6 +603,11 @@ std::optional<std::string> CConfigManager::handleAnimation(const std::string& co
if (enabledInt > 1 || enabledInt < 0)
return "invalid animation on/off state";
if (!enabledInt) {
m_AnimationTree.setConfigForNode(ANIMNAME, 0, 1, "default");
return {};
}
int64_t speed = -1;
// speed