Skip to content

Commit

Permalink
Merge pull request #306 from Krakonos/issue-275-moving-in-node-mode-n…
Browse files Browse the repository at this point in the history
…ot-smooth

Fixed snap management in create node.
  • Loading branch information
Krakonos authored Oct 2, 2024
2 parents 43c7745 + 0442d3d commit 56f772e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Interactions/CreateNodeInteraction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ QString CreateNodeInteraction::toHtml()
void CreateNodeInteraction::snapMousePressEvent(QMouseEvent * ev, Feature* aFeat)
{
if (CAST_NODE(aFeat)) {
clearNoSnap();
addToNoSnap(aFeat);
return theMoveInteraction->snapMousePressEvent(ev, aFeat);
} else {
SAFE_DELETE(theMoveInteraction);
Expand Down Expand Up @@ -77,6 +79,7 @@ void CreateNodeInteraction::snapMouseReleaseEvent(QMouseEvent * ev, Feature* aFe
{
if (theMoveInteraction) {
theMoveInteraction->snapMouseReleaseEvent(ev, aFeat);
clearNoSnap();
return;
}

Expand Down

0 comments on commit 56f772e

Please sign in to comment.