Skip to content

Commit

Permalink
Do not search places in timed event graph #14
Browse files Browse the repository at this point in the history
  • Loading branch information
Lecrapouille committed May 14, 2024
1 parent 263e0d0 commit 9807d89
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/Editor/DearImGui/Editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -919,10 +919,11 @@ bool Editor::switchOfNet(TypeOfNet const type)
//------------------------------------------------------------------------------
Node* Editor::getNode(ImVec2 const& position)
{
Node *n = getPlace(position);
if (n != nullptr)
return n;
return getTransition(position);
Node *node = getTransition(position);
if (m_net.type() == TypeOfNet::TimedEventGraph)
return node;

return (node != nullptr) ? node : getPlace(position);
}

//------------------------------------------------------------------------------
Expand Down

0 comments on commit 9807d89

Please sign in to comment.