diff options
author | bubnikv <bubnikv@gmail.com> | 2019-04-24 20:03:05 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2019-04-24 20:03:05 +0300 |
commit | 2cc7b00a7d1d8e5f5f534a93da792d3297b9002c (patch) | |
tree | c05ce4dda3db05068320331b4fe7ea13161b31aa /src/slic3r/GUI/3DScene.hpp | |
parent | 5d2537af35e754950329f2e12c3c940435c8e4f0 (diff) |
WIP: World / local transformations of an object instance from the side panel.
Diffstat (limited to 'src/slic3r/GUI/3DScene.hpp')
-rw-r--r-- | src/slic3r/GUI/3DScene.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/slic3r/GUI/3DScene.hpp b/src/slic3r/GUI/3DScene.hpp index 88547359e..faf5a745d 100644 --- a/src/slic3r/GUI/3DScene.hpp +++ b/src/slic3r/GUI/3DScene.hpp @@ -275,6 +275,8 @@ public: int volume_id; // Instance ID, which is equal to the index of the respective ModelInstance in ModelObject.instances array. int instance_id; + bool operator==(const CompositeID &rhs) const { return object_id == rhs.object_id && volume_id == rhs.volume_id && instance_id == rhs.instance_id; } + bool operator!=(const CompositeID &rhs) const { return ! (*this == rhs); } }; CompositeID composite_id; // Fingerprint of the source geometry. For ModelVolumes, it is the ModelVolume::ID and ModelInstanceID, |