diff --git a/CHANGELOG.md b/CHANGELOG.md index 62d2b68e..febe1cac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 02ea47d3..707e647f 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -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);