FIX: crash when use manual flow rate

fix the PA tower is effect

Change-Id: Idc00090c75023d62beca2a32529a6749081de9ef
This commit is contained in:
zhimin.zeng 2023-08-10 17:50:28 +08:00 committed by lane.wei
parent 5beeed7593
commit 0bfc42989b
3 changed files with 6 additions and 3 deletions

View file

@ -397,7 +397,7 @@ void CalibUtils::calib_flowrate(int pass, const CalibInfo& calib_info, std::stri
for (auto _obj : model.objects) {
_obj->ensure_on_bed();
_obj->config.set_key_value("wall_loops", new ConfigOptionInt(3));
_obj->config.set_key_value("only_one_wall_top", new ConfigOptionBool(true));
_obj->config.set_key_value("top_one_wall_type", new ConfigOptionEnum<TopOneWallType>(TopOneWallType::Topmost));
_obj->config.set_key_value("sparse_infill_density", new ConfigOptionPercent(35));
_obj->config.set_key_value("bottom_shell_layers", new ConfigOptionInt(1));
_obj->config.set_key_value("top_shell_layers", new ConfigOptionInt(5));