From 25fc322825251322af120acf98afbc173bfdc00a Mon Sep 17 00:00:00 2001 From: mix Date: Sat, 24 May 2025 02:47:12 +0100 Subject: [PATCH] Invalidate screen on reload from object selection window --- distribution/changelog.txt | 1 + src/openrct2-ui/windows/EditorObjectSelection.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 4dec6a7191..07cbc76287 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -30,6 +30,7 @@ - Fix: [#24447] Shortcut list is not refreshed when changing language. - Fix: [#24448] Shortcuts involving the Caps Lock key are wrongly localised to NumPad Dot. - Fix: [#24464] Window and viewport visibility is not calculated correctly causing minor performance issues. +- Fix: [#24488] Objects are not always redrawn immediately when they are reloaded from the Object Selection window. 0.4.22 (2025-05-04) ------------------------------------------------------------------------ diff --git a/src/openrct2-ui/windows/EditorObjectSelection.cpp b/src/openrct2-ui/windows/EditorObjectSelection.cpp index 9277a4881d..01720f38fc 100644 --- a/src/openrct2-ui/windows/EditorObjectSelection.cpp +++ b/src/openrct2-ui/windows/EditorObjectSelection.cpp @@ -478,6 +478,7 @@ namespace OpenRCT2::Ui::Windows { objectManager.UnloadObjects({ descriptor }); objectManager.LoadObject(descriptor, entryIndex); + GfxInvalidateScreen(); } } break;