New selection -> Fixed selection cleanup in GLCanvas3D::reset_volumes()

This commit is contained in:
Enrico Turri 2018-10-23 11:50:30 +02:00
parent 4c527776e7
commit 9a4a41acbf

View File

@ -2893,11 +2893,11 @@ void GLCanvas3D::reset_volumes()
return;
#endif // !ENABLE_USE_UNIQUE_GLCONTEXT
m_volumes.release_geometry();
m_volumes.clear();
#if ENABLE_EXTENDED_SELECTION
m_selection.clear();
#endif // ENABLE_EXTENDED_SELECTION
m_volumes.release_geometry();
m_volumes.clear();
m_dirty = true;
}