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 9adbe79 commit ea49b55
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 @@ -926,10 +926,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 ea49b55

Please sign in to comment.