mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-30 05:09:12 -07:00
Fixed forward declaration of enums, made volumes with negative ID
directly unselectable.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user