mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 01:07:57 -06:00
Fixed forward declaration of enums, made volumes with negative ID
directly unselectable.
This commit is contained in:
parent
03875e7d71
commit
88445f98f0
3 changed files with 4 additions and 4 deletions
|
@ -1220,7 +1220,7 @@ void GLCanvas3D::Selection::add(unsigned int volume_idx, bool as_single_selectio
|
|||
{
|
||||
case Volume:
|
||||
{
|
||||
if (is_empty() || (volume->instance_idx() == get_instance_idx()))
|
||||
if (volume->volume_idx() >= 0 && (is_empty() || (volume->instance_idx() == get_instance_idx())))
|
||||
_add_volume(volume_idx);
|
||||
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue