Skip to content

Commit

Permalink
hide guizmo when holding shift
Browse files Browse the repository at this point in the history
  • Loading branch information
xoxor4d committed Sep 14, 2022
1 parent 3449186 commit 7ca14d0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ggui/camera_guizmo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ namespace ggui::camera_guizmo
if (camerawnd->rtt_is_hovered())
{
const auto& io = imgui::GetIO();
if (io.KeyMods == (ImGuiKeyModFlags_Ctrl) || GetKeyState(VK_MENU) < 0)
if ( (io.KeyMods & ImGuiKeyModFlags_Ctrl)
|| (io.KeyMods & ImGuiKeyModFlags_Shift)
|| GetKeyState(VK_MENU) < 0)
{
return;
}
Expand Down

0 comments on commit 7ca14d0

Please sign in to comment.