From e0ff9411ba71fca4d1acf4d9946eceb0b6e516a3 Mon Sep 17 00:00:00 2001 From: Joseph Lenox Date: Sun, 13 May 2018 09:20:05 -0500 Subject: [PATCH] Stubbed undo ops for increase/decrease. --- src/GUI/Plater.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/GUI/Plater.hpp b/src/GUI/Plater.hpp index c0c69fdeb..be6b27051 100644 --- a/src/GUI/Plater.hpp +++ b/src/GUI/Plater.hpp @@ -31,7 +31,7 @@ namespace Slic3r { namespace GUI { using UndoOperation = int; enum class UndoCmd { - Remove, Add, Reset + Remove, Add, Reset, Increase, Decrease }; using ObjIdx = unsigned int; @@ -66,6 +66,9 @@ public: /// Push an undo op onto the stack. void add_undo_operation(UndoCmd cmd, std::vector& obj_ids, Slic3r::Model& model); + + /// Undo for increase/decrease + void add_undo_operation(UndoCmd cmd, int obj_id, size_t copies); private: std::shared_ptr print {std::make_shared(Slic3r::Print())};