mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-21 05:37:52 -06:00
Ported PrintConfigBase::_handle_legacy from Perl to C++,
merged from upstream Slic3r, thanks to @alexrj.
This commit is contained in:
parent
cd084a33c6
commit
e16f827223
6 changed files with 116 additions and 95 deletions
|
@ -646,6 +646,7 @@ public:
|
|||
opt->type = type;
|
||||
return opt;
|
||||
}
|
||||
bool has(const t_config_option_key &opt_key) const { return this->options.count(opt_key) > 0; }
|
||||
const ConfigOptionDef* get(const t_config_option_key &opt_key) const {
|
||||
t_optiondef_map::iterator it = const_cast<ConfigDef*>(this)->options.find(opt_key);
|
||||
return (it == this->options.end()) ? nullptr : &it->second;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue