Preserve x/y flip status when selecting a single tile from the metatile picker
This commit is contained in:
parent
34cc6fe5c7
commit
4dc9ebada9
1 changed files with 2 additions and 0 deletions
|
@ -253,6 +253,8 @@ void TilesetEditor::onMetatileLayerSelectionChanged(QPoint selectionOrigin, int
|
|||
if (width == 1 && height == 1) {
|
||||
this->tileSelector->select(static_cast<uint16_t>(tiles[0].tile));
|
||||
ui->spinBox_paletteSelector->setValue(tiles[0].palette);
|
||||
ui->checkBox_xFlip->setChecked(tiles[0].xflip);
|
||||
ui->checkBox_yFlip->setChecked(tiles[0].yflip);
|
||||
QPoint pos = tileSelector->getTileCoordsOnWidget(static_cast<uint16_t>(tiles[0].tile));
|
||||
ui->scrollArea_Tiles->ensureVisible(pos.x(), pos.y());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue