mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 16:57:53 -06:00
Manipulation with colorprint ticks now calls Plater::schedule_background_process()
This commit is contained in:
parent
a4e1ab2281
commit
70fdb48c12
3 changed files with 13 additions and 5 deletions
|
@ -40,6 +40,9 @@ class Preview : public wxPanel
|
|||
Print* m_print;
|
||||
GCodePreviewData* m_gcode_preview_data;
|
||||
|
||||
// Calling this function object forces Plater::schedule_background_process.
|
||||
std::function<void()> m_schedule_background_process;
|
||||
|
||||
unsigned int m_number_extruders;
|
||||
std::string m_preferred_color_mode;
|
||||
|
||||
|
@ -50,7 +53,7 @@ class Preview : public wxPanel
|
|||
PrusaDoubleSlider* m_slider {nullptr};
|
||||
|
||||
public:
|
||||
Preview(wxNotebook* notebook, DynamicPrintConfig* config, Print* print, GCodePreviewData* gcode_preview_data);
|
||||
Preview(wxNotebook* notebook, DynamicPrintConfig* config, Print* print, GCodePreviewData* gcode_preview_data, std::function<void()> schedule_background_process = [](){});
|
||||
virtual ~Preview();
|
||||
|
||||
wxGLCanvas* get_wxglcanvas() { return m_canvas; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue