diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index bdbc0b78..6e7c091b 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -10,7 +10,6 @@ #include "currentselectedmetatilespixmapitem.h" #include "customattributestable.h" - #include #include #include @@ -1061,6 +1060,8 @@ void MainWindow::on_tabWidget_2_currentChanged(int index) } else if (index == 1) { editor->setEditingCollision(); } + editor->playerViewRect->setVisible(false); + editor->cursorMapTileRect->setVisible(false); } void MainWindow::on_action_Exit_triggered() @@ -1779,7 +1780,10 @@ void MainWindow::on_toolButton_Paint_clicked() { editor->map_edit_mode = "paint"; editor->settings->mapCursor = QCursor(QPixmap(":/icons/pencil_cursor.ico"), 10, 10); - editor->cursorMapTileRect->stopSingleTileMode(); + + // do not stop single tile mode when editing collision + if (ui->tabWidget_2->currentIndex() == 0) + editor->cursorMapTileRect->stopSingleTileMode(); ui->scrollArea->setHorizontalScrollBarPolicy(Qt::ScrollBarAsNeeded); ui->scrollArea->setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded);