mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-25 07:34:03 -06:00
Support enum config options
This commit is contained in:
parent
f274287b0e
commit
bb5bbe191f
3 changed files with 58 additions and 31 deletions
|
@ -129,6 +129,8 @@ DynamicConfig::option(const t_config_option_key opt_key, bool create) {
|
|||
opt = new ConfigOptionPoint ();
|
||||
} else if (Options[opt_key].type == coBool) {
|
||||
opt = new ConfigOptionBool ();
|
||||
} else if (Options[opt_key].type == coEnumGCodeFlavor) {
|
||||
opt = new ConfigOptionEnumGCodeFlavor ();
|
||||
} else {
|
||||
throw "Unknown option type";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue