Sync metatile selection from the map to the tileset editor

This commit is contained in:
GriffinR 2020-07-01 15:35:30 -04:00 committed by huderlem
parent b06070df5f
commit a92d0eb006

View file

@ -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)