Keeps non selected instances as disabled for any combination of current instance's volumes selection

This commit is contained in:
Enrico Turri 2019-04-04 09:01:47 +02:00
parent 703b9bda32
commit a7318dbe19

View File

@ -1147,16 +1147,12 @@ void Selection::_update_type()
} }
if (modifiers_count == 0) if (modifiers_count == 0)
{
m_type = MultipleVolume; m_type = MultipleVolume;
requires_disable = true;
}
else if (modifiers_count == (unsigned int)m_list.size()) else if (modifiers_count == (unsigned int)m_list.size())
{
m_type = MultipleModifier; m_type = MultipleModifier;
requires_disable = true;
}
} }
requires_disable = true;
} }
else if ((selected_instances_count > 1) && (selected_instances_count * volumes_count == (unsigned int)m_list.size())) else if ((selected_instances_count > 1) && (selected_instances_count * volumes_count == (unsigned int)m_list.size()))
{ {