mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-07-25 20:02:17 +00:00
Fix:step mesh using boost thread
github: #5304 Change-Id: I4afc5978b00eed20c46a1bf4100c9a0f0328daf8 (cherry picked from commit 151f40ad4dbf871576937f9674ac532c32df27d0)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user