ENABLE_SEAMS_USING_MODELS -> Fixed instances when horizontal slider is enabled for top layer only

This commit is contained in:
enricoturri1966 2021-08-27 15:23:27 +02:00
parent 9c4eeeaa18
commit 7bd14bfaf7

View File

@ -2421,6 +2421,9 @@ 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;
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)