mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-24 15:13:58 -06:00
Use a single gl context created in c++
This commit is contained in:
parent
a02ea39525
commit
44220530cb
7 changed files with 42 additions and 26 deletions
|
@ -1348,7 +1348,7 @@ void GLCanvas3D::update_volumes_selection(const std::vector<int>& selections)
|
|||
|
||||
for (unsigned int obj_idx = 0; obj_idx < (unsigned int)m_model->objects.size(); ++obj_idx)
|
||||
{
|
||||
if (selections[obj_idx] == 1)
|
||||
if ((selections[obj_idx] == 1) && (obj_idx < (unsigned int)m_objects_volumes_idxs.size()))
|
||||
{
|
||||
const std::vector<int>& volume_idxs = m_objects_volumes_idxs[obj_idx];
|
||||
for (int v : volume_idxs)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue