Fixed some more issues in copy / paste of objects and volumes

due to the layer_height_profile, paint on supports and seam
being stored as an object on its own onto the Undo / Redo stack.
This commit is contained in:
Vojtech Bubnik 2020-10-15 17:29:42 +02:00
parent 00a7799341
commit a8fda7d2f1
5 changed files with 171 additions and 45 deletions

View file

@ -108,6 +108,8 @@ protected:
// Resetting timestamp to 1 indicates the object is in its initial (cleared) state.
// To be called by the derived class's clear() method.
void reset_timestamp() { m_timestamp = 1; }
// The timestamp uniquely identifies content of the derived class' data, therefore it makes sense to copy the timestamp if the content data was copied.
void copy_timestamp(const ObjectWithTimestamp& rhs) { m_timestamp = rhs.m_timestamp; }
public:
// Return an optional timestamp of this object.