mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-20 05:07:51 -06:00
Fixed set_value() bug. Fixed Infill density.
* Got rid of try/catch at PointCtrl::set_value(). * Optimized localization: got rid of redundant macro _LU8(s).
This commit is contained in:
parent
4d9eac0750
commit
f330eb9567
5 changed files with 46 additions and 47 deletions
|
@ -35,8 +35,7 @@ struct Option {
|
|||
bool readonly {false};
|
||||
|
||||
Option(const ConfigOptionDef& _opt, t_config_option_key id) :
|
||||
opt(_opt), opt_id(id) { translate(); }
|
||||
void translate();
|
||||
opt(_opt), opt_id(id) {}
|
||||
};
|
||||
using t_option = std::unique_ptr<Option>; //!
|
||||
|
||||
|
@ -96,6 +95,7 @@ public:
|
|||
}
|
||||
bool set_value(t_config_option_key id, boost::any value) {
|
||||
if (m_fields.find(id) == m_fields.end()) return false;
|
||||
m_fields.at(id)->set_value(value);
|
||||
return true;
|
||||
}
|
||||
boost::any get_value(t_config_option_key id) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue