From fe7ae9450bcaa143e87deb997090455012dc07ec Mon Sep 17 00:00:00 2001 From: WerWolv Date: Thu, 4 Feb 2021 00:22:14 +0100 Subject: [PATCH] Clear node and link selection in data processor when right clicking --- source/views/view_data_processor.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/views/view_data_processor.cpp b/source/views/view_data_processor.cpp index 62eb1c94a..afdde533d 100644 --- a/source/views/view_data_processor.cpp +++ b/source/views/view_data_processor.cpp @@ -114,6 +114,9 @@ namespace hex { if (ImGui::Begin("Data Processor", &this->getWindowOpenState(), ImGuiWindowFlags_NoCollapse)) { if (ImGui::IsMouseReleased(ImGuiMouseButton_Right) && ImGui::IsWindowHovered(ImGuiHoveredFlags_ChildWindows)) { + imnodes::ClearNodeSelection(); + imnodes::ClearLinkSelection(); + this->m_rightClickedCoords = ImGui::GetMousePos(); if (imnodes::IsNodeHovered(&this->m_rightClickedId))