From 5f92ddb56cd7461fc386c3a1a9344362a3b9a852 Mon Sep 17 00:00:00 2001 From: enricoturri1966 Date: Tue, 23 Nov 2021 11:42:22 +0100 Subject: [PATCH] Fix for horizontal slider limits the top non-gray layers to two, not one, SPE-1130 --- src/slic3r/GUI/GCodeViewer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slic3r/GUI/GCodeViewer.cpp b/src/slic3r/GUI/GCodeViewer.cpp index 0fd8201ea1..3b583154ca 100644 --- a/src/slic3r/GUI/GCodeViewer.cpp +++ b/src/slic3r/GUI/GCodeViewer.cpp @@ -2442,7 +2442,7 @@ void GCodeViewer::refresh_render_paths(bool keep_sequential_current_first, bool return m_layers.get_endpoints_at(min_id).first <= id && id <= m_layers.get_endpoints_at(max_id).last; }; - return in_layers_range(path.sub_paths.front().first.s_id) || in_layers_range(path.sub_paths.back().last.s_id); + return in_layers_range(path.sub_paths.front().first.s_id) && in_layers_range(path.sub_paths.back().last.s_id); }; auto is_travel_in_layers_range = [this](size_t path_id, size_t min_id, size_t max_id) {