mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-06-14 16:02:55 +00:00
Remove unused lines, formatting clean up
This commit is contained in:
@@ -388,7 +388,6 @@ void CalibPressureAdvancePattern::set_starting_point(const Model& model)
|
||||
void CalibPressureAdvancePattern::generate_custom_gcodes(Model& model, const Vec3d& origin)
|
||||
{
|
||||
std::stringstream gcode;
|
||||
|
||||
gcode << "; start pressure advance pattern for layer\n";
|
||||
|
||||
refresh_pattern_config(model);
|
||||
@@ -446,7 +445,7 @@ void CalibPressureAdvancePattern::generate_custom_gcodes(Model& model, const Vec
|
||||
gcode << writer.travel_to_z(layer_height, "Move to layer height");
|
||||
}
|
||||
|
||||
// // line numbering
|
||||
// line numbering
|
||||
if (i == 1) {
|
||||
gcode << writer.set_pressure_advance(m_params.start);
|
||||
|
||||
|
||||
@@ -8132,7 +8132,6 @@ void Plater::_calib_pa_pattern(const Calib_Params& params)
|
||||
_calib_pa_select_added_objects();
|
||||
|
||||
const DynamicPrintConfig& printer_config = wxGetApp().preset_bundle->printers.get_edited_preset().config;
|
||||
// DynamicPrintConfig* filament_config = &wxGetApp().preset_bundle->filaments.get_edited_preset().config;
|
||||
DynamicPrintConfig& print_config = wxGetApp().preset_bundle->prints.get_edited_preset().config;
|
||||
|
||||
for (const auto opt : SuggestedCalibPressureAdvancePatternConfig().float_pairs) {
|
||||
@@ -8157,12 +8156,7 @@ void Plater::_calib_pa_pattern(const Calib_Params& params)
|
||||
);
|
||||
}
|
||||
|
||||
// wxGetApp().get_tab(Preset::TYPE_PRINTER)->update_dirty();
|
||||
// wxGetApp().get_tab(Preset::TYPE_FILAMENT)->update_dirty();
|
||||
wxGetApp().get_tab(Preset::TYPE_PRINT)->update_dirty();
|
||||
|
||||
// wxGetApp().get_tab(Preset::TYPE_PRINTER)->reload_config();
|
||||
// wxGetApp().get_tab(Preset::TYPE_FILAMENT)->reload_config();
|
||||
wxGetApp().get_tab(Preset::TYPE_PRINT)->reload_config();
|
||||
|
||||
DynamicPrintConfig full_config = wxGetApp().preset_bundle->full_config();
|
||||
|
||||
Reference in New Issue
Block a user