1
0
mirror of synced 2024-11-24 15:50:16 +01:00

Clear node and link selection in data processor when right clicking

This commit is contained in:
WerWolv 2021-02-04 00:22:14 +01:00
parent 91d05c5de6
commit fe7ae9450b

View File

@ -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))