[core] trigger repaint after placement is redone
fixes #3140 This also fixes a bug where placement could be redone with a stale PlacementConfig after the tile first finishes loading.
This commit is contained in:
@@ -356,6 +356,10 @@ void Style::onTileError(Source& source, const TileID& tileID, std::exception_ptr
|
||||
observer->onResourceError(error);
|
||||
}
|
||||
|
||||
void Style::onPlacementRedone() {
|
||||
observer->onResourceLoaded();
|
||||
}
|
||||
|
||||
void Style::onSpriteLoaded() {
|
||||
shouldReparsePartialTiles = true;
|
||||
observer->onSpriteLoaded();
|
||||
|
||||
Reference in New Issue
Block a user