diff --git a/include/engine/Module.hpp b/include/engine/Module.hpp index 23d9b39f..6f6107e9 100644 --- a/include/engine/Module.hpp +++ b/include/engine/Module.hpp @@ -152,7 +152,9 @@ struct Module { template TSwitchQuantity* configSwitch(int paramId, float minValue, float maxValue, float defaultValue, std::string name = "", std::vector labels = {}) { TSwitchQuantity* sq = configParam(paramId, minValue, maxValue, defaultValue, name); - sq->labels = labels; + sq->ParamQuantity::snapEnabled = true; + sq->ParamQuantity::smoothEnabled = false; + sq->SwitchQuantity::labels = labels; return sq; } @@ -162,7 +164,9 @@ struct Module { template TSwitchQuantity* configButton(int paramId, std::string name = "") { TSwitchQuantity* sq = configParam(paramId, 0.f, 1.f, 0.f, name); - sq->randomizeEnabled = false; + sq->ParamQuantity::snapEnabled = true; + sq->ParamQuantity::smoothEnabled = false; + sq->ParamQuantity::randomizeEnabled = false; return sq; }