Follow-up of d4b22cfb87
-> Fixed dragging of sla instances after slicing
This commit is contained in:
parent
c542413962
commit
adf9c4bd40
1 changed files with 1 additions and 1 deletions
|
@ -1703,7 +1703,7 @@ bool Selection::_is_from_fully_selected_instance(unsigned int volume_idx) const
|
||||||
GLVolumePtrs& volumes;
|
GLVolumePtrs& volumes;
|
||||||
|
|
||||||
SameInstance(int obj_idx, int inst_idx, GLVolumePtrs& volumes) : obj_idx(obj_idx), inst_idx(inst_idx), volumes(volumes) {}
|
SameInstance(int obj_idx, int inst_idx, GLVolumePtrs& volumes) : obj_idx(obj_idx), inst_idx(inst_idx), volumes(volumes) {}
|
||||||
bool operator () (unsigned int i) { return (volumes[i]->object_idx() == obj_idx) && (volumes[i]->instance_idx() == inst_idx); }
|
bool operator () (unsigned int i) { return (volumes[i]->volume_idx() >= 0) && (volumes[i]->object_idx() == obj_idx) && (volumes[i]->instance_idx() == inst_idx); }
|
||||||
};
|
};
|
||||||
|
|
||||||
if ((unsigned int)m_volumes->size() <= volume_idx)
|
if ((unsigned int)m_volumes->size() <= volume_idx)
|
||||||
|
|
Loading…
Reference in a new issue