From a744f7d60c73007c05e85ba4199ea8b90d311e5e Mon Sep 17 00:00:00 2001 From: "yifan.wu" Date: Fri, 2 Sep 2022 21:13:00 +0800 Subject: [PATCH] ENH: support to show object labels in 3D scene Signed-off-by: yifan.wu Change-Id: If2267b13ab15d2c18175dc54cfda605f8f062cf8 --- src/slic3r/GUI/MainFrame.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/slic3r/GUI/MainFrame.cpp b/src/slic3r/GUI/MainFrame.cpp index a0123df25..a72d36569 100644 --- a/src/slic3r/GUI/MainFrame.cpp +++ b/src/slic3r/GUI/MainFrame.cpp @@ -1935,6 +1935,12 @@ void MainFrame::init_menubar_as_editor() viewMenu->Check(wxID_CAMERA_PERSPECTIVE + camera_id_base, true); else viewMenu->Check(wxID_CAMERA_ORTHOGONAL + camera_id_base, true); + + viewMenu->AppendSeparator(); + append_menu_check_item(viewMenu, wxID_ANY, _L("Show &Labels"), _L("Show object labels in 3D scene"), + [this](wxCommandEvent&) { m_plater->show_view3D_labels(!m_plater->are_view3D_labels_shown()); }, this, + [this]() { return m_plater->is_view3D_shown(); }, [this]() { return m_plater->are_view3D_labels_shown(); }, this); + //viewMenu->AppendSeparator(); ////BBS orthogonal view //append_menu_check_item(viewMenu, wxID_ANY, _L("Show Edges(TODO)"), _L("Show Edges"),