Sync metatile selection from the map to the tileset editor
This commit is contained in:
parent
b06070df5f
commit
a92d0eb006
1 changed files with 2 additions and 0 deletions
|
@ -1157,6 +1157,8 @@ void MainWindow::currentMetatilesSelectionChanged()
|
||||||
pos *= scale;
|
pos *= scale;
|
||||||
ui->scrollArea_2->ensureVisible(pos.x(), pos.y(), 8 * scale, 8 * 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)
|
void MainWindow::on_mapList_activated(const QModelIndex &index)
|
||||||
|
|
Loading…
Reference in a new issue