From a92d0eb0068e4e63b293984ac1ee8be092cfedfd Mon Sep 17 00:00:00 2001 From: GriffinR Date: Wed, 1 Jul 2020 15:35:30 -0400 Subject: [PATCH] Sync metatile selection from the map to the tileset editor --- src/mainwindow.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 94bae90b..124279d7 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -1157,6 +1157,8 @@ void MainWindow::currentMetatilesSelectionChanged() pos *= scale; ui->scrollArea_2->ensureVisible(pos.x(), pos.y(), 8 * scale, 8 * scale); } + if (this->tilesetEditor) + this->tilesetEditor->selectMetatile(editor->metatile_selector_item->getSelectedMetatiles()->at(0)); } void MainWindow::on_mapList_activated(const QModelIndex &index)