From fecd3c3297c8dc85775622d65e292492523cc150 Mon Sep 17 00:00:00 2001 From: Mack Date: Tue, 8 Oct 2024 20:35:27 +0800 Subject: [PATCH] FIX:Parameter value has not changed, no recalculation jira: STUDIO-8283 Change-Id: I3564ff0993de1c3b8e039fc0115b4ccd81b2a5a2 --- src/slic3r/GUI/StepMeshDialog.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/slic3r/GUI/StepMeshDialog.cpp b/src/slic3r/GUI/StepMeshDialog.cpp index 393571e8a..bdab0790c 100644 --- a/src/slic3r/GUI/StepMeshDialog.cpp +++ b/src/slic3r/GUI/StepMeshDialog.cpp @@ -91,7 +91,7 @@ StepMeshDialog::StepMeshDialog(wxWindow* parent, Slic3r::Step& file) m_linear_last = value; update_mesh_number_text(); } else { - MessageDialog msg_dlg(nullptr, _L("Please input a valid value (0.001 < angle deflection < 0.1)"), wxEmptyString, wxICON_WARNING | wxOK); + MessageDialog msg_dlg(nullptr, _L("Please input a valid value (0.001 < linear deflection < 0.1)"), wxEmptyString, wxICON_WARNING | wxOK); msg_dlg.ShowModal(); linear_input->GetTextCtrl()->SetValue(m_linear_last); } @@ -281,6 +281,8 @@ void StepMeshDialog::update_mesh_number_text() wxCommandEvent event(wxEVT_THREAD_DONE); event.SetString(number_text); wxPostEvent(this, event); + m_last_linear = get_linear_defletion(); + m_last_angle = get_angle_defletion(); } return number; });