mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 08:47:52 -06:00
BedShape is extracted to the separate structure
This commit is contained in:
parent
4641d44544
commit
15285a68a0
3 changed files with 190 additions and 12 deletions
|
@ -732,16 +732,14 @@ static std::string get_pure_opt_key(std::string opt_key)
|
|||
|
||||
static wxString get_string_value(std::string opt_key, const DynamicPrintConfig& config)
|
||||
{
|
||||
int opt_idx = get_id_from_opt_key(opt_key);
|
||||
opt_key = get_pure_opt_key(opt_key);
|
||||
|
||||
if (config.option(opt_key)->is_nil())
|
||||
return _L("N/A");
|
||||
|
||||
int opt_idx = get_id_from_opt_key(opt_key);
|
||||
wxString out;
|
||||
|
||||
// FIXME controll, if opt_key has index
|
||||
|
||||
const ConfigOptionDef* opt = config.def()->get(opt_key);
|
||||
bool is_nullable = opt->nullable;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue