mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
fix: register enable_filament_dynamic_map and has_filament_switcher config options (#13623)
fix(printconfig): register enable_filament_dynamic_map and has_filament_switcher options PR #13388 (X2D Support) added import/export for these options in bbs_3mf.cpp but never registered them in PrintConfig.cpp. Loading any .3mf containing these keys throws UnknownOptionException at PartPlate.cpp:6153 when config->apply() looks up the missing definition.
This commit is contained in:
@@ -2427,6 +2427,18 @@ void PrintConfigDef::init_fff_params()
|
||||
def->mode = comAdvanced;
|
||||
def->set_default_value(new ConfigOptionEnum<FilamentMapMode>(fmmAutoForFlush));
|
||||
|
||||
def = this->add("enable_filament_dynamic_map", coBool);
|
||||
def->label = L("Enable filament dynamic map");
|
||||
def->tooltip = L("Enable dynamic filament mapping during print.");
|
||||
def->mode = comDevelop;
|
||||
def->set_default_value(new ConfigOptionBool(false));
|
||||
|
||||
def = this->add("has_filament_switcher", coBool);
|
||||
def->label = L("Has filament switcher");
|
||||
def->tooltip = L("Printer has a filament switcher hardware (e.g., AMS).");
|
||||
def->mode = comDevelop;
|
||||
def->set_default_value(new ConfigOptionBool(false));
|
||||
|
||||
def = this->add("filament_flush_temp", coInts);
|
||||
def->label = L("Flush temperature");
|
||||
def->tooltip = L("Temperature when flushing filament. 0 indicates the upper bound of the recommended nozzle temperature range.");
|
||||
|
||||
Reference in New Issue
Block a user