Clear node and link selection in data processor when right clicking
This commit is contained in:
parent
91d05c5de6
commit
fe7ae9450b
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user