last step in fixing the g-code stuff up

This commit is contained in:
HarrierPigeon authored and harrierpigeon committed 2026-08-02 22:13:34 -05:00
1 parent 79fd847ce3
commit 0342e06d87
6 files changed
+27 -2

No files matched your search

+5 -1
View File
@@ -10315,7 +10315,11 @@ void GLCanvas3D::_set_warning_notification_if_needed(EWarning warning)
if (current_printer_technology() != ptSLA) {
unsigned int max_z_layer = m_gcode_viewer.get_layers_z_range().back();
if (warning == EWarning::ToolHeightOutside) // check if max z_layer height exceed max print height
show = m_gcode_viewer.has_data() && (m_gcode_viewer.get_layers_zs()[max_z_layer] - m_gcode_viewer.get_max_print_height() >= 1e-6);
// Belt printer with active post-gcode machine-frame transform: layer Z values
// live in the machine frame, not the build-volume frame, so the comparison
// against printable_height is meaningless. Suppress the warning entirely.
show = m_gcode_viewer.has_data() && !m_gcode_viewer.is_machine_frame_transform_active()
&& (m_gcode_viewer.get_layers_zs()[max_z_layer] - m_gcode_viewer.get_max_print_height() >= 1e-6);
else if (warning == EWarning::ToolpathOutside) { // check if max x,y coords exceed bed area
show = m_gcode_viewer.has_data() && !m_gcode_viewer.is_contained_in_bed() &&
(m_gcode_viewer.get_max_print_height() -m_gcode_viewer.get_layers_zs()[max_z_layer] >= 1e-6);