diff --git a/include/engine/Param.hpp b/include/engine/Param.hpp index ac6f32bf..99692e50 100644 --- a/include/engine/Param.hpp +++ b/include/engine/Param.hpp @@ -38,6 +38,8 @@ struct Param { /** An optional one-sentence description of the parameter */ std::string description; ParamQuantityFactory *paramQuantityFactory = NULL; + /** Determines whether this param will be randomized automatically when the user requests to randomize the module state */ + bool randomizable = true; ~Param() { if (paramQuantityFactory) diff --git a/src/engine/Module.cpp b/src/engine/Module.cpp index 31fb504c..358ec1cc 100644 --- a/src/engine/Module.cpp +++ b/src/engine/Module.cpp @@ -81,7 +81,8 @@ void Module::reset() { void Module::randomize() { for (Param ¶m : params) { - param.randomize(); + if (param.randomizable) + param.randomize(); } onRandomize(); }