ENH:add some shortcut of gizmo

Change-Id: Ie639483663f5fa9fe3cd597fb279d95474969408
This commit is contained in:
liz.li 2023-02-09 15:55:41 +08:00 committed by Lane.Wei
parent e9c443fcd7
commit aac9bfd593
8 changed files with 109 additions and 3 deletions

View file

@ -128,6 +128,29 @@ void GLGizmoFdmSupports::render_painter_gizmo() const
glsafe(::glDisable(GL_BLEND));
}
// BBS
bool GLGizmoFdmSupports::on_key_down_select_tool_type(int keyCode) {
switch (keyCode)
{
case 'F':
m_current_tool = ImGui::FillButtonIcon;
break;
case 'S':
m_current_tool = ImGui::SphereButtonIcon;
break;
case 'C':
m_current_tool = ImGui::CircleButtonIcon;
break;
case 'G':
m_current_tool = ImGui::GapFillIcon;
break;
default:
return false;
break;
}
return true;
}
// BBS
void GLGizmoFdmSupports::render_triangles(const Selection& selection) const
{