diff --git a/src/GUI/Plater.cpp b/src/GUI/Plater.cpp index 623299215..3ac360799 100644 --- a/src/GUI/Plater.cpp +++ b/src/GUI/Plater.cpp @@ -22,8 +22,8 @@ Plater::Plater(wxWindow* parent, const wxString& title, std::shared_ptrselect_object(obj_idx); + auto on_select_object { [=](size_t& obj_idx) { + this->select_object(obj_idx); } }; /* # Initialize handlers for canvases diff --git a/src/GUI/Plater.hpp b/src/GUI/Plater.hpp index ecbec1048..726040892 100644 --- a/src/GUI/Plater.hpp +++ b/src/GUI/Plater.hpp @@ -72,6 +72,8 @@ private: bool outside_bounds {false}; MainFrame* GetFrame(); + void select_object(size_t& obj_idx) { }; + };