From a54a7e1aac85566e0ba5a6dce1b32565c00f8579 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 b42eb5c472..28e134266c 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 ""; }