mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-06-05 19:42:47 +00:00
Added type "MultipleFullObject" to Selection
+ Fixed updating of the name of the manipulation pane + Changed logic of "Ctrl+A" inside the object list
This commit is contained in:
@@ -1863,6 +1863,19 @@ void GLCanvas3D::Selection::_update_type()
|
||||
else if ((selected_instances_count > 1) && (selected_instances_count * volumes_count == (unsigned int)m_list.size()))
|
||||
m_type = MultipleFullInstance;
|
||||
}
|
||||
else
|
||||
{
|
||||
int sels_cntr = 0;
|
||||
for (ObjectIdxsToInstanceIdxsMap::iterator it = m_cache.content.begin(); it != m_cache.content.end(); ++it)
|
||||
{
|
||||
const ModelObject* model_object = m_model->objects[it->first];
|
||||
unsigned int volumes_count = (unsigned int)model_object->volumes.size();
|
||||
unsigned int instances_count = (unsigned int)model_object->instances.size();
|
||||
sels_cntr += volumes_count * instances_count;
|
||||
}
|
||||
if (sels_cntr == (unsigned int)m_list.size())
|
||||
m_type = MultipleFullObject;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1915,6 +1928,11 @@ void GLCanvas3D::Selection::_update_type()
|
||||
std::cout << "selection type: SingleFullObject" << std::endl;
|
||||
break;
|
||||
}
|
||||
case MultipleFullObject:
|
||||
{
|
||||
std::cout << "selection type: MultipleFullObject" << std::endl;
|
||||
break;
|
||||
}
|
||||
case SingleFullInstance:
|
||||
{
|
||||
std::cout << "selection type: SingleFullInstance" << std::endl;
|
||||
|
||||
Reference in New Issue
Block a user