mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-21 17:39:10 -07:00
WIP Undo / Redo : serialization / deserialization of object selection.
This commit is contained in:
@@ -24,6 +24,8 @@ class ObjectID
|
||||
{
|
||||
public:
|
||||
ObjectID(size_t id) : id(id) {}
|
||||
// Default constructor constructs an invalid ObjectID.
|
||||
ObjectID() : id(0) {}
|
||||
|
||||
bool operator==(const ObjectID &rhs) const { return this->id == rhs.id; }
|
||||
bool operator!=(const ObjectID &rhs) const { return this->id != rhs.id; }
|
||||
@@ -38,8 +40,6 @@ public:
|
||||
size_t id;
|
||||
|
||||
private:
|
||||
ObjectID() {}
|
||||
|
||||
friend class cereal::access;
|
||||
template<class Archive> void serialize(Archive &ar) { ar(id); }
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user