Fix region map tile selector palette differing from selection

This commit is contained in:
GriffinR
2025-04-20 09:38:12 -04:00
parent 80024d9ce3
commit 1d6d0c6dc9
2 changed files with 5 additions and 1 deletions

View File

@@ -58,6 +58,7 @@ The **"Breaking Changes"** listed below are changes that have been made in the d
- Fix `Add Region Map...` not updating the region map settings file.
- Fix some crashes on invalid region map tilesets.
- Improve error reporting for invalid region map editor settings.
- Fix the region map editor's palette resetting between region maps.
- Fix config files being written before the project is opened successfully.
- Fix the map and other project info still displaying if a new project fails to open.
- Fix unsaved changes being ignored when quitting (such as with Cmd+Q on macOS).

View File

@@ -774,7 +774,10 @@ void RegionMapEditor::displayRegionMapTileSelector() {
this->mapsquare_selector_item = new TilemapTileSelector(this->region_map->pngPath(), this->region_map->tilemapFormat(), this->region_map->palPath());
this->mapsquare_selector_item->draw();
// Initialize with current settings
this->mapsquare_selector_item->selectHFlip(ui->checkBox_tileHFlip->isChecked());
this->mapsquare_selector_item->selectVFlip(ui->checkBox_tileVFlip->isChecked());
this->mapsquare_selector_item->selectPalette(ui->spinBox_tilePalette->value()); // This will also draw the selector
this->scene_region_map_tiles->addItem(this->mapsquare_selector_item);