Enforce indexed tile images

This commit is contained in:
GriffinR 2022-11-04 13:06:50 -04:00
parent 5b3252cc01
commit 567a6d92e5

View file

@ -1388,7 +1388,7 @@ void Project::loadTilesetAssets(Tileset* tileset) {
this->readTilesetPaths(tileset);
QImage image;
if (QFile::exists(tileset->tilesImagePath)) {
image = QImage(tileset->tilesImagePath);
image = QImage(tileset->tilesImagePath).convertToFormat(QImage::Format_Indexed8, Qt::ThresholdDither);
} else {
image = QImage(8, 8, QImage::Format_Indexed8);
}