NEW: add the wireframe rendering mode for debug

currently we can turn on/off it by 'ctrl+shift+enter'

Change-Id: Ic9e5460e8955376e8e2c1a3701e12a1f0b4216ad
This commit is contained in:
lane.wei 2022-10-14 22:01:04 +08:00 committed by Lane.Wei
parent c423577e1d
commit b4d66394e7
6 changed files with 62 additions and 6 deletions

View file

@ -2662,6 +2662,12 @@ void GLCanvas3D::on_key(wxKeyEvent& evt)
#if !BBL_RELEASE_TO_PUBLIC
wxGetApp().plater()->toggle_render_statistic_dialog();
m_dirty = true;
#endif
}
else if (evt.ShiftDown() && evt.ControlDown() && keyCode == WXK_RETURN) {
#if !BBL_RELEASE_TO_PUBLIC
wxGetApp().plater()->toggle_show_wireframe();
m_dirty = true;
#endif
}
else if (m_tab_down && keyCode == WXK_TAB && !evt.HasAnyModifiers()) {