Skip to content

Commit

Permalink
Fixed Eraser Right Click collision with Ctrl + Right Click select (#2904
Browse files Browse the repository at this point in the history
)

Also, ignore vim files.
  • Loading branch information
aganm authored Oct 1, 2020
1 parent f4d0b3e commit 6fa954e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,7 @@ util/java/libtiled-java/target

# Linux perf/debugging
gmon.out

# Vim files
*.swp
*.swo
2 changes: 1 addition & 1 deletion src/tiled/eraser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ void Eraser::mousePressed(QGraphicsSceneMouseEvent *event)
mMode = Erase;
doErase(false);
return;
} else if (event->button() == Qt::RightButton) {
} else if (event->button() == Qt::RightButton && !(event->modifiers() & Qt::ControlModifier)) {
mStart = tilePosition();
mMode = RectangleErase;
return;
Expand Down

0 comments on commit 6fa954e

Please sign in to comment.