Allow to drag object's subparts once selected using the sidebar table

This commit is contained in:
Enrico Turri 2019-03-04 11:00:52 +01:00
parent 12c91f4283
commit 06c2b4bdf3

View File

@ -896,7 +896,11 @@ void GLCanvas3D::Selection::add(unsigned int volume_idx, bool as_single_selectio
if (needs_reset)
clear();
m_mode = volume->is_modifier ? Volume : Instance;
if (volume->is_modifier)
m_mode = Volume;
else if (!contains_volume(volume_idx))
m_mode = Instance;
// else -> keep current mode
switch (m_mode)
{