mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-11-09 03:12:26 +00:00
Fixed assert in GLCanvas3D::Selection::is_single_full_instance()
This commit is contained in:
1 parent
13a2532746
commit
4b5657b16b
1 file changed
+2
-5
@@ -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()))
|
||||||
{
|
return m_model->objects[object_idx]->volumes.size() == m_list.size();
|
||||||
if ((object_idx != -1) && (object_idx < 1000))
|
|
||||||
return m_model->objects[object_idx]->volumes.size() == m_list.size();
|
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user