Reload even empty preview

When Preview::load_print is called and even if the print
has no layers, call load_gcode_preview to show an
empty bed for print with no layers.
This commit is contained in:
Martin Šach 2024-12-11 10:45:11 +01:00 committed by Lukas Matena
parent 4348417ca8
commit b4ab9883c2

View File

@ -938,6 +938,7 @@ void Preview::load_print_as_fff(bool keep_z_range)
}
if (wxGetApp().is_editor() && !has_layers) {
m_canvas->reset_gcode_toolpaths();
m_canvas->reset_gcode_layers_times_cache();
m_canvas->load_gcode_shells();
hide_layers_slider();