From 1f4a47681255ad132ebae3cd2ba94de794ad8da2 Mon Sep 17 00:00:00 2001 From: Lukas Matena Date: Tue, 30 Apr 2024 15:54:15 +0200 Subject: [PATCH] Added an error message when tilt would be disabled --- src/libslic3r/SLAPrint.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/libslic3r/SLAPrint.cpp b/src/libslic3r/SLAPrint.cpp index fdfa02289b..56fc81c89d 100644 --- a/src/libslic3r/SLAPrint.cpp +++ b/src/libslic3r/SLAPrint.cpp @@ -685,6 +685,12 @@ std::string SLAPrint::validate(std::vector*) const } } + if (!m_material_config.use_tilt.get_at(0) && m_material_config.tower_hop_height_nm.get_at(0) == 0 + || !m_material_config.use_tilt.get_at(1) && m_material_config.tower_hop_height_nm.get_at(1) == 0) + return _u8L("Disabling the 'Use tilt' function causes the object to separate away from the film in the " + "vertical direction only. Therefore, it is necessary to set the 'Tower hop height' parameter " + " to a reasonable minimum value."); + return ""; }