Skip to content

Commit

Permalink
Fix Crash when adding custom printer as printer or second printer
Browse files Browse the repository at this point in the history
  • Loading branch information
supermerill committed Dec 23, 2023
1 parent 612cbc2 commit bbb2080
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/libslic3r/PrintConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4117,7 +4117,7 @@ void PrintConfigDef::init_fff_params()
"\nset 0 to disable");
def->sidetext = L("mm or %");
def->mode = comExpert | comSuSi;
def->set_default_value(new ConfigOptionFloatOrPercent(false, 0));
def->set_default_value(new ConfigOptionFloatOrPercent(0, false));

def = this->add("perimeter_fan_speed", coInts);
def->label = L("Internal Perimeter fan speed");
Expand Down
8 changes: 4 additions & 4 deletions src/slic3r/GUI/ConfigWizard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1558,10 +1558,10 @@ void PageDiameters::apply_custom_config(DynamicPrintConfig &config)
config.option("infill_extrusion_width")->set_phony(true);
config.option("solid_infill_extrusion_width")->set_phony(true);
config.option("top_infill_extrusion_width")->set_phony(true);
config.set_key_value("perimeter_extrusion_change_odd_layers", new ConfigOptionFloat(0));
config.set_key_value("external_perimeter_extrusion_change_odd_layers", new ConfigOptionFloat(0));
config.set_key_value("infill_extrusion_change_odd_layers", new ConfigOptionFloat(0));
config.set_key_value("solid_infill_extrusion_change_odd_layers", new ConfigOptionFloat(0));
config.set_key_value("perimeter_extrusion_change_odd_layers", new ConfigOptionFloatOrPercent(0, false));
config.set_key_value("external_perimeter_extrusion_change_odd_layers", new ConfigOptionFloatOrPercent(0, false));
config.set_key_value("infill_extrusion_change_odd_layers", new ConfigOptionFloatOrPercent(0, false));
config.set_key_value("solid_infill_extrusion_change_odd_layers", new ConfigOptionFloatOrPercent(0, false));
config.update_phony({});
}

Expand Down

0 comments on commit bbb2080

Please sign in to comment.