mirror of
https://github.com/huderlem/porymap.git
synced 2026-09-26 18:06:32 -05:00
Prevent duplicate metatile pastes in the tileset editor
This commit is contained in:
@@ -815,7 +815,7 @@ void TilesetEditor::onPaletteEditorChangedPalette(int paletteId) {
|
||||
bool TilesetEditor::replaceMetatile(uint16_t metatileId, Metatile * src)
|
||||
{
|
||||
Metatile * dest = Tileset::getMetatile(metatileId, this->primaryTileset, this->secondaryTileset);
|
||||
if (!dest || !src)
|
||||
if (!dest || !src || *dest == *src)
|
||||
return false;
|
||||
|
||||
this->metatile = dest;
|
||||
|
||||
Reference in New Issue
Block a user