mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-15 01:22:07 +00:00
Fixed assert in GLCanvas3D::Selection::is_single_full_instance()
This commit is contained in:
@@ -1368,11 +1368,8 @@ bool GLCanvas3D::Selection::is_single_full_instance() const
|
||||
return true;
|
||||
|
||||
int object_idx = m_valid ? get_object_idx() : -1;
|
||||
if (object_idx != -1)
|
||||
{
|
||||
if ((object_idx != -1) && (object_idx < 1000))
|
||||
return m_model->objects[object_idx]->volumes.size() == m_list.size();
|
||||
}
|
||||
if ((0 <= object_idx) && (object_idx < (int)m_model->objects.size()))
|
||||
return m_model->objects[object_idx]->volumes.size() == m_list.size();
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user