From 9adbe79338351975abafa62c9400b5ae89bf1ff2 Mon Sep 17 00:00:00 2001 From: Quentin Quadrat Date: Tue, 14 May 2024 01:40:31 +0200 Subject: [PATCH] Fix adding wrong nodes when dragging in timed event graph #14 --- src/Editor/DearImGui/Editor.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Editor/DearImGui/Editor.cpp b/src/Editor/DearImGui/Editor.cpp index 8cc68dc..008422a 100644 --- a/src/Editor/DearImGui/Editor.cpp +++ b/src/Editor/DearImGui/Editor.cpp @@ -1500,7 +1500,10 @@ void Editor::PetriView::onHandleInput() if (button == MOUSE_BOUTON_HANDLE_ARC) { - handleArcDestination(); + if (!ImGui::GetIO().KeyCtrl) + { + handleArcDestination(); + } } }