From 263e0d0f4d76f0ea7d2678868fd4ffdf84d239ea 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 6f93e3b..40d3936 100644 --- a/src/Editor/DearImGui/Editor.cpp +++ b/src/Editor/DearImGui/Editor.cpp @@ -1493,7 +1493,10 @@ void Editor::PetriView::onHandleInput() if (button == MOUSE_BOUTON_HANDLE_ARC) { - handleArcDestination(); + if (!ImGui::GetIO().KeyCtrl) + { + handleArcDestination(); + } } }