From 1ededf8481c68908cd8f610b707138807da025d2 Mon Sep 17 00:00:00 2001 From: Joseph Lenox Date: Mon, 30 Apr 2018 22:34:30 -0500 Subject: [PATCH] added Selected_instance field to Plater2DObject, also added reference to object index to Plater. --- src/GUI/Plater.hpp | 1 + src/GUI/Plater/Plater2DObject.hpp | 1 + 2 files changed, 2 insertions(+) diff --git a/src/GUI/Plater.hpp b/src/GUI/Plater.hpp index 2d42295a5..c74f9d87f 100644 --- a/src/GUI/Plater.hpp +++ b/src/GUI/Plater.hpp @@ -21,6 +21,7 @@ namespace Slic3r { namespace GUI { using UndoOperation = int; +using obj_index = unsigned int; class Plater2DObject; class Plate2D; diff --git a/src/GUI/Plater/Plater2DObject.hpp b/src/GUI/Plater/Plater2DObject.hpp index 3a1772cfb..1bd5b97ba 100644 --- a/src/GUI/Plater/Plater2DObject.hpp +++ b/src/GUI/Plater/Plater2DObject.hpp @@ -8,6 +8,7 @@ public: std::string name {""}; std::string identifier {""}; bool selected {false}; + int selected_instance {-1}; }; } } // Namespace Slic3r::GUI #endif