mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 16:57:53 -06:00
Fixed crash when moving horizontal slider thumb in preview with no toolpath active
This commit is contained in:
parent
9e0e597284
commit
2ecd78b0d5
5 changed files with 25 additions and 6 deletions
|
@ -1612,9 +1612,8 @@ struct Plater::priv
|
|||
#if ENABLE_GCODE_VIEWER
|
||||
void update_preview_bottom_toolbar();
|
||||
void update_preview_moves_slider();
|
||||
#endif // ENABLE_GCODE_VIEWER
|
||||
void enable_preview_moves_slider(bool enable);
|
||||
|
||||
#if ENABLE_GCODE_VIEWER
|
||||
void reset_gcode_toolpaths();
|
||||
#endif // ENABLE_GCODE_VIEWER
|
||||
|
||||
|
@ -4105,9 +4104,12 @@ void Plater::priv::update_preview_moves_slider()
|
|||
{
|
||||
preview->update_moves_slider();
|
||||
}
|
||||
#endif // ENABLE_GCODE_VIEWER
|
||||
|
||||
#if ENABLE_GCODE_VIEWER
|
||||
void Plater::priv::enable_preview_moves_slider(bool enable)
|
||||
{
|
||||
preview->enable_moves_slider(enable);
|
||||
}
|
||||
|
||||
void Plater::priv::reset_gcode_toolpaths()
|
||||
{
|
||||
preview->get_canvas3d()->reset_gcode_toolpaths();
|
||||
|
@ -5898,6 +5900,11 @@ void Plater::update_preview_moves_slider()
|
|||
p->update_preview_moves_slider();
|
||||
}
|
||||
|
||||
void Plater::enable_preview_moves_slider(bool enable)
|
||||
{
|
||||
p->enable_preview_moves_slider(enable);
|
||||
}
|
||||
|
||||
void Plater::reset_gcode_toolpaths()
|
||||
{
|
||||
p->reset_gcode_toolpaths();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue