Retain external selection on map change (closes #291)

This commit is contained in:
BigBahss 2020-08-29 09:31:16 -04:00 committed by garak
parent 4b5b84ed36
commit 6251da65b2

View file

@ -67,7 +67,7 @@ void MetatileSelector::setTilesets(Tileset *primaryTileset, Tileset *secondaryTi
this->secondaryTileset = secondaryTileset; this->secondaryTileset = secondaryTileset;
if (!this->selectionIsValid()) { if (!this->selectionIsValid()) {
this->select(Project::getNumMetatilesPrimary() + this->secondaryTileset->metatiles->length() - 1); this->select(Project::getNumMetatilesPrimary() + this->secondaryTileset->metatiles->length() - 1);
} else { } else if (!this->externalSelection) {
updateSelectedMetatiles(); updateSelectedMetatiles();
} }
this->draw(); this->draw();