mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-08-02 15:52:14 +00:00
Remove asserts which limited life of key/value set
This commit is contained in:
@@ -8135,25 +8135,25 @@ void Plater::_calib_pa_pattern(const Calib_Params& params)
|
|||||||
DynamicPrintConfig& print_config = wxGetApp().preset_bundle->prints.get_edited_preset().config;
|
DynamicPrintConfig& print_config = wxGetApp().preset_bundle->prints.get_edited_preset().config;
|
||||||
|
|
||||||
for (const auto opt : SuggestedCalibPressureAdvancePatternConfig().float_pairs) {
|
for (const auto opt : SuggestedCalibPressureAdvancePatternConfig().float_pairs) {
|
||||||
assert(!print_config.set_key_value(
|
print_config.set_key_value(
|
||||||
opt.first,
|
opt.first,
|
||||||
new ConfigOptionFloat(opt.second)
|
new ConfigOptionFloat(opt.second)
|
||||||
));
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (const auto opt : SuggestedCalibPressureAdvancePatternConfig().nozzle_ratio_pairs) {
|
for (const auto opt : SuggestedCalibPressureAdvancePatternConfig().nozzle_ratio_pairs) {
|
||||||
double nozzle_diameter = printer_config.option<ConfigOptionFloats>("nozzle_diameter")->get_at(0);
|
double nozzle_diameter = printer_config.option<ConfigOptionFloats>("nozzle_diameter")->get_at(0);
|
||||||
assert(!print_config.set_key_value(
|
print_config.set_key_value(
|
||||||
opt.first,
|
opt.first,
|
||||||
new ConfigOptionFloat(nozzle_diameter * opt.second / 100)
|
new ConfigOptionFloat(nozzle_diameter * opt.second / 100)
|
||||||
));
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (const auto opt : SuggestedCalibPressureAdvancePatternConfig().int_pairs) {
|
for (const auto opt : SuggestedCalibPressureAdvancePatternConfig().int_pairs) {
|
||||||
assert(!print_config.set_key_value(
|
print_config.set_key_value(
|
||||||
opt.first,
|
opt.first,
|
||||||
new ConfigOptionInt(opt.second)
|
new ConfigOptionInt(opt.second)
|
||||||
));
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
wxGetApp().get_tab(Preset::TYPE_PRINT)->update_dirty();
|
wxGetApp().get_tab(Preset::TYPE_PRINT)->update_dirty();
|
||||||
|
|||||||
Reference in New Issue
Block a user