Skip to content

Commit

Permalink
Stop single tile mode on prefab tab
Browse files Browse the repository at this point in the history
  • Loading branch information
GriffinRichards committed Aug 19, 2023
1 parent d28849a commit ae68ab3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ The **"Breaking Changes"** listed below are changes that have been made in the d
- Fix connections not being deleted when the map name text box is cleared.
- Fix the map border not updating when a tileset is changed.
- Stop the Tileset Editor from scrolling to the initially selected metatile when saving.
- Fix the selection outline sticking in single-tile mode on the Prefab tab.

## [5.1.1] - 2023-02-20
### Added
Expand Down
2 changes: 1 addition & 1 deletion src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2206,7 +2206,7 @@ void MainWindow::on_toolButton_Paint_clicked()
editor->settings->mapCursor = QCursor(QPixmap(":/icons/pencil_cursor.ico"), 10, 10);

// do not stop single tile mode when editing collision
if (ui->mapViewTab->currentIndex() == 0)
if (ui->mapViewTab->currentIndex() != 1)
editor->cursorMapTileRect->stopSingleTileMode();

ui->graphicsView_Map->setHorizontalScrollBarPolicy(Qt::ScrollBarAsNeeded);
Expand Down

0 comments on commit ae68ab3

Please sign in to comment.