SPE-2374: Fixed update of shells visibility when user changes printer technology

This commit is contained in:
enricoturri1966 2024-06-25 15:32:56 +02:00 committed by Lukas Matena
parent 631810abe4
commit 3c3591f8a0

View File

@ -2552,6 +2552,7 @@ void GLCanvas3D::load_gcode_preview(const GCodeProcessorResult& gcode_result, co
m_gcode_viewer.set_view_type(m_gcode_viewer.get_view_type()); m_gcode_viewer.set_view_type(m_gcode_viewer.get_view_type());
m_gcode_viewer.load_as_gcode(gcode_result, *this->fff_print(), str_tool_colors, str_color_print_colors); m_gcode_viewer.load_as_gcode(gcode_result, *this->fff_print(), str_tool_colors, str_color_print_colors);
m_gcode_layers_times_cache = m_gcode_viewer.get_layers_times(); m_gcode_layers_times_cache = m_gcode_viewer.get_layers_times();
m_gcode_viewer.set_force_shells_visible(false);
if (wxGetApp().is_editor()) { if (wxGetApp().is_editor()) {
_set_warning_notification_if_needed(EWarning::ToolpathOutside); _set_warning_notification_if_needed(EWarning::ToolpathOutside);
_set_warning_notification_if_needed(EWarning::GCodeConflict); _set_warning_notification_if_needed(EWarning::GCodeConflict);
@ -2570,6 +2571,7 @@ void GLCanvas3D::load_sla_preview()
reset_volumes(); reset_volumes();
_load_sla_shells(); _load_sla_shells();
_update_sla_shells_outside_state(); _update_sla_shells_outside_state();
m_gcode_viewer.set_force_shells_visible(false);
_set_warning_notification_if_needed(EWarning::ObjectClashed); _set_warning_notification_if_needed(EWarning::ObjectClashed);
_set_warning_notification_if_needed(EWarning::SlaSupportsOutside); _set_warning_notification_if_needed(EWarning::SlaSupportsOutside);
} }