Skip to content

Commit

Permalink
ENH: support to show object labels in 3D scene
Browse files Browse the repository at this point in the history
Signed-off-by: yifan.wu <[email protected]>
Change-Id: If2267b13ab15d2c18175dc54cfda605f8f062cf8
  • Loading branch information
YifanWuBambu authored and lanewei120 committed Sep 8, 2022
1 parent 612204b commit a744f7d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/slic3r/GUI/MainFrame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down

0 comments on commit a744f7d

Please sign in to comment.