mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-18 04:08:02 -06:00
WIP Undo / Redo: First Undo in the history of PrusaSlicer!
This commit is contained in:
parent
e2a670218b
commit
5a2ace1a6e
8 changed files with 108 additions and 15 deletions
|
@ -44,6 +44,9 @@ public:
|
|||
void take_snapshot(const std::string &snapshot_name, const Slic3r::Model &model, const Slic3r::GUI::Selection &selection);
|
||||
void load_snapshot(size_t timestamp, Slic3r::Model &model, Slic3r::GUI::Selection &selection);
|
||||
|
||||
bool undo(Slic3r::Model &model, Slic3r::GUI::Selection &selection);
|
||||
bool redo(Slic3r::Model &model, Slic3r::GUI::Selection &selection);
|
||||
|
||||
// Snapshot history (names with timestamps).
|
||||
const std::vector<Snapshot>& snapshots() const;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue