From 7bd14bfaf7fef96719a37e5d632c1f09cfebf348 Mon Sep 17 00:00:00 2001 From: enricoturri1966 Date: Fri, 27 Aug 2021 15:23:27 +0200 Subject: [PATCH] ENABLE_SEAMS_USING_MODELS -> Fixed instances when horizontal slider is enabled for top layer only --- src/slic3r/GUI/GCodeViewer.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/slic3r/GUI/GCodeViewer.cpp b/src/slic3r/GUI/GCodeViewer.cpp index 382b78ca3..9ac0536a4 100644 --- a/src/slic3r/GUI/GCodeViewer.cpp +++ b/src/slic3r/GUI/GCodeViewer.cpp @@ -2421,7 +2421,10 @@ void GCodeViewer::refresh_render_paths(bool keep_sequential_current_first, bool if (has_second_range) { if (id <= m_sequential_view.endpoints.first) { ++buffer.model.instances.render_ranges.ranges.front().offset; - ++buffer.model.instances.render_ranges.ranges.back().count; + if (id <= m_sequential_view.current.first) + ++buffer.model.instances.render_ranges.ranges.back().offset; + else + ++buffer.model.instances.render_ranges.ranges.back().count; } else if (id <= m_sequential_view.current.last) ++buffer.model.instances.render_ranges.ranges.front().count;