mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 00:37:51 -06:00
Tech ENABLE_GCODE_VIEWER -> removed legend texture from GLCanvas3D
This commit is contained in:
parent
3a07e8730f
commit
179dbc7d0e
4 changed files with 34 additions and 5 deletions
|
@ -479,8 +479,9 @@ void Preview::reload_print(bool keep_volumes)
|
|||
m_canvas->reset_volumes();
|
||||
#if ENABLE_GCODE_VIEWER
|
||||
m_canvas->reset_gcode_toolpaths();
|
||||
#endif // ENABLE_GCODE_VIEWER
|
||||
#else
|
||||
m_canvas->reset_legend_texture();
|
||||
#endif // ENABLE_GCODE_VIEWER
|
||||
m_loaded = false;
|
||||
#ifdef __linux__
|
||||
m_volumes_cleanup_required = false;
|
||||
|
@ -937,7 +938,9 @@ void Preview::load_print_as_fff(bool keep_z_range)
|
|||
if (! has_layers)
|
||||
{
|
||||
reset_sliders(true);
|
||||
#if !ENABLE_GCODE_VIEWER
|
||||
m_canvas->reset_legend_texture();
|
||||
#endif // !ENABLE_GCODE_VIEWER
|
||||
m_canvas_widget->Refresh();
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue