mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 16:57:53 -06:00
To OptionsGroup added "reload_config" to reload configurations after changes in any fields & "get_config_value" to get current option value from config.
In Field extended "set_value" to Choice. In PrintConfig added default_value to "post_process".
This commit is contained in:
parent
16458e070a
commit
59432d50ff
8 changed files with 168 additions and 12 deletions
|
@ -201,8 +201,7 @@ void change_opt_value(DynamicPrintConfig& config, t_config_option_key opt_key, b
|
|||
case coFloat:
|
||||
{
|
||||
double& val = config.opt_float(opt_key);
|
||||
std::string str = boost::any_cast<std::string>(value);
|
||||
val = boost::lexical_cast<double>(str);
|
||||
val = boost::any_cast<double>(value);
|
||||
break;
|
||||
}
|
||||
// case coPercents:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue