mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-13 05:19:06 +08:00
Fixed crash when selecting wipe tower
This commit is contained in:
parent
0eba32bb0c
commit
20cff0f630
@ -1383,7 +1383,7 @@ bool GLCanvas3D::Selection::is_single_full_instance() const
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
int object_idx = m_valid ? get_object_idx() : -1;
|
int object_idx = m_valid ? get_object_idx() : -1;
|
||||||
if (object_idx == -1)
|
if ((object_idx < 0) || ((int)m_model->objects.size() < object_idx))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
int instance_idx = (*m_volumes)[*m_list.begin()]->instance_idx();
|
int instance_idx = (*m_volumes)[*m_list.begin()]->instance_idx();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user