Fix:step mesh using boost thread

github: #5304
Change-Id: I4afc5978b00eed20c46a1bf4100c9a0f0328daf8
(cherry picked from commit 151f40ad4dbf871576937f9674ac532c32df27d0)
This commit is contained in:
yongfang.bian
2025-01-13 15:46:24 +08:00
committed by Noisyfox
parent affa9068f0
commit 08eeed9c72
3 changed files with 57 additions and 38 deletions

View File

@@ -12,6 +12,7 @@ class StepMeshDialog : public Slic3r::GUI::DPIDialog
{
public:
StepMeshDialog(wxWindow* parent, Slic3r::Step& file, double linear_init, double angle_init);
~StepMeshDialog() override;
void on_dpi_changed(const wxRect& suggested_rect) override;
inline double get_linear_defletion() {
double value;
@@ -44,7 +45,7 @@ private:
double m_last_linear = 0.003;
double m_last_angle = 0.5;
unsigned int m_mesh_number = 0;
std::future<unsigned int> task;
boost::thread* m_task {nullptr};
bool validate_number_range(const wxString& value, double min, double max);
void update_mesh_number_text();
void on_task_done(wxCommandEvent& event);