mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-05-13 15:18:09 +08:00
Fixed assert in GLCanvas3D::Selection::is_single_full_instance()
This commit is contained in:
parent
13a2532746
commit
4b5657b16b
@ -1368,11 +1368,8 @@ bool GLCanvas3D::Selection::is_single_full_instance() const
|
|||||||
return true;
|
return true;
|
||||||
|
|
||||||
int object_idx = m_valid ? get_object_idx() : -1;
|
int object_idx = m_valid ? get_object_idx() : -1;
|
||||||
if (object_idx != -1)
|
if ((0 <= object_idx) && (object_idx < (int)m_model->objects.size()))
|
||||||
{
|
|
||||||
if ((object_idx != -1) && (object_idx < 1000))
|
|
||||||
return m_model->objects[object_idx]->volumes.size() == m_list.size();
|
return m_model->objects[object_idx]->volumes.size() == m_list.size();
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user