mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-24 15:13:58 -06:00
Code cleanup
This commit is contained in:
parent
de540de9aa
commit
c948ca647c
3 changed files with 5 additions and 24 deletions
|
@ -1901,6 +1901,10 @@ void GLCanvas3D::update_gizmos_data()
|
|||
m_gizmos.set_angle_z(model_instance->rotation);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -3813,7 +3817,7 @@ int GLCanvas3D::_get_first_selected_volume_id() const
|
|||
{
|
||||
int object_id = vol->select_group_id / 1000000;
|
||||
// Objects with object_id >= 1000 have a specific meaning, for example the wipe tower proxy.
|
||||
if (object_id < 10000)
|
||||
if ((object_id < 10000) && (object_id < objects_count))
|
||||
{
|
||||
int volume_id = 0;
|
||||
for (int i = 0; i < object_id; ++i)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue