Fix for horizontal slider limits the top non-gray layers to two, not one, SPE-1130

This commit is contained in:
enricoturri1966 2021-11-23 11:42:22 +01:00
parent 5f95476a0c
commit 5f92ddb56c

View File

@ -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) {