Fixed forward declaration of enums, made volumes with negative ID
directly unselectable.
This commit is contained in:
parent
03875e7d71
commit
88445f98f0
@ -6,13 +6,13 @@
|
||||
|
||||
namespace Slic3r {
|
||||
|
||||
enum SLAPrintStep {
|
||||
enum SLAPrintStep : unsigned int {
|
||||
slapsRasterize,
|
||||
slapsValidate,
|
||||
slapsCount
|
||||
};
|
||||
|
||||
enum SLAPrintObjectStep {
|
||||
enum SLAPrintObjectStep : unsigned int {
|
||||
slaposObjectSlice,
|
||||
slaposSupportIslands,
|
||||
slaposSupportPoints,
|
||||
|
@ -18,7 +18,7 @@ class Print;
|
||||
class PrintObject;
|
||||
class SLAPrint;
|
||||
class SLAPrintObject;
|
||||
enum SLAPrintObjectStep;
|
||||
enum SLAPrintObjectStep : unsigned int;
|
||||
class Model;
|
||||
class ModelObject;
|
||||
class GCodePreviewData;
|
||||
|
@ -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…
Reference in New Issue
Block a user