#7160 - Fixed drag object on mouse move cause wrong color when outside the print area

This commit is contained in:
enricoturri1966 2021-10-27 10:37:35 +02:00
parent f309cf3aa9
commit 3f669e70b9

View file

@ -1712,7 +1712,10 @@ void Selection::set_caches()
void Selection::do_add_volume(unsigned int volume_idx) void Selection::do_add_volume(unsigned int volume_idx)
{ {
m_list.insert(volume_idx); m_list.insert(volume_idx);
(*m_volumes)[volume_idx]->selected = true; GLVolume* v = (*m_volumes)[volume_idx];
v->selected = true;
if (v->hover == GLVolume::HS_Select || v->hover == GLVolume::HS_Deselect)
v->hover = GLVolume::HS_Hover;
} }
void Selection::do_add_volumes(const std::vector<unsigned int>& volume_idxs) void Selection::do_add_volumes(const std::vector<unsigned int>& volume_idxs)