Fixed forward declaration of enums, made volumes with negative ID

directly unselectable.
This commit is contained in:
bubnikv 2018-11-13 18:44:30 +01:00
parent 03875e7d71
commit 88445f98f0
3 changed files with 4 additions and 4 deletions

View file

@ -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;