From e6c781454610fc0dac3c2a26cdb3763d4ad38a69 Mon Sep 17 00:00:00 2001 From: enricoturri1966 Date: Wed, 24 Nov 2021 12:31:27 +0100 Subject: [PATCH] Fix of missing update after changing the value of Max print height into Printer settings tab - SPE-1133 --- src/slic3r/GUI/3DBed.cpp | 2 +- src/slic3r/GUI/Plater.cpp | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/slic3r/GUI/3DBed.cpp b/src/slic3r/GUI/3DBed.cpp index a8d7dbdf25..bd5ca9f521 100644 --- a/src/slic3r/GUI/3DBed.cpp +++ b/src/slic3r/GUI/3DBed.cpp @@ -174,7 +174,7 @@ bool Bed3D::set_shape(const Pointfs& bed_shape, const double max_print_height, c } - if (m_build_volume.bed_shape() == bed_shape && m_type == type && m_texture_filename == texture_filename && m_model_filename == model_filename) + if (m_build_volume.bed_shape() == bed_shape && m_build_volume.max_print_height() == max_print_height && m_type == type && m_texture_filename == texture_filename && m_model_filename == model_filename) // No change, no need to update the UI. return false; diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index 7cbaa9d085..9049bbf381 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -6284,8 +6284,10 @@ void Plater::on_config_change(const DynamicPrintConfig &config) update_scheduled = true; p->sidebar->obj_list()->update_extruder_colors(); } - else if(opt_key == "max_print_height") + else if (opt_key == "max_print_height") { + bed_shape_changed = true; update_scheduled = true; + } else if (opt_key == "printer_model") { p->reset_gcode_toolpaths(); // update to force bed selection(for texturing)