Allow reparsing partial tiles when we have new tiles
When parsing a tile, we request resources from the network, like sprites and glyphs. In the rare case of the resources arriving before the tile is parsed for the first time, if we don't mark it for being parsed again, it can end up with a tile eternally stuck in the partial state.
This commit is contained in:
@@ -101,7 +101,11 @@ void ResourceLoader::onSourceLoaded() {
|
||||
emitTileDataChanged();
|
||||
}
|
||||
|
||||
void ResourceLoader::onTileLoaded() {
|
||||
void ResourceLoader::onTileLoaded(bool isNewTile) {
|
||||
if (isNewTile) {
|
||||
shouldReparsePartialTiles_ = true;
|
||||
}
|
||||
|
||||
emitTileDataChanged();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user