From 13333e6c07b51e6cc83fb83b7004c3eecfe6c540 Mon Sep 17 00:00:00 2001 From: Mohit Sethi Date: Tue, 5 Jul 2022 00:57:00 +0530 Subject: [PATCH] Don't allow using Gizmos while holding left alt Disable the use of Gizmo while navigating the scene through editor camera --- Hazelnut/src/EditorLayer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Hazelnut/src/EditorLayer.cpp b/Hazelnut/src/EditorLayer.cpp index 9a01e16b7..a18e19288 100644 --- a/Hazelnut/src/EditorLayer.cpp +++ b/Hazelnut/src/EditorLayer.cpp @@ -256,7 +256,7 @@ namespace Hazel { // Gizmos Entity selectedEntity = m_SceneHierarchyPanel.GetSelectedEntity(); - if (selectedEntity && m_GizmoType != -1) + if (selectedEntity && m_GizmoType != -1 && !Input::IsKeyPressed(Key::LeftAlt)) { ImGuizmo::SetOrthographic(false); ImGuizmo::SetDrawlist();