Skip to content

Commit

Permalink
Merge pull request TrenchBroom#4341 from TrenchBroom/4340-fix-entity-…
Browse files Browse the repository at this point in the history
…dragndrop

4340: Fix condition for accepting drag events in the tool chain
  • Loading branch information
kduske authored Sep 28, 2023
2 parents a53b7db + da2ab64 commit 5ffdbbc
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions common/src/View/ToolChain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,11 +181,8 @@ bool ToolChain::shouldAcceptDrop(
{
return false;
}
if (m_tool->toolActive())
{
return m_tool->shouldAcceptDrop(inputState, payload);
}
return m_suffix->shouldAcceptDrop(inputState, payload);
return (m_tool->toolActive() && m_tool->shouldAcceptDrop(inputState, payload))
|| m_suffix->shouldAcceptDrop(inputState, payload);
}

std::unique_ptr<DropTracker> ToolChain::dragEnter(
Expand Down

0 comments on commit 5ffdbbc

Please sign in to comment.