Fixed updating of cut contour in cut gizmo by comparing ObjectIDs,

for consistency with other gizmos and hopefully more robustness
This commit is contained in:
Lukas Matena 2021-08-18 11:14:31 +02:00
parent 3cf6d1c888
commit 8a5278354e
2 changed files with 7 additions and 6 deletions

View file

@ -5,6 +5,7 @@
#if ENABLE_SINKING_CONTOURS
#include "slic3r/GUI/GLModel.hpp"
#include "libslic3r/TriangleMesh.hpp"
#include "libslic3r/ObjectID.hpp"
#endif // ENABLE_SINKING_CONTOURS
namespace Slic3r {
@ -33,7 +34,7 @@ class GLGizmoCut : public GLGizmoBase
double cut_z{ 0.0 };
Vec3d position{ Vec3d::Zero() };
Vec3d shift{ Vec3d::Zero() };
int object_idx{ -1 };
ObjectID object_id;
int instance_idx{ -1 };
};