diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2024-06-06 00:30:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-06 00:30:06 +0200 |
commit | 56a8db109c728ec10ecc10f3847fad5c92cf33b9 (patch) | |
tree | a525df1d3a642fee2515667568e5e19f88a54a69 | |
parent | 96a386f3c424af96d950ee5098b4b0e4907c9508 (diff) | |
parent | 864a93fdbf282232d50695fdb8054e323a4f743b (diff) | |
download | redot-engine-56a8db109c728ec10ecc10f3847fad5c92cf33b9.tar.gz |
Merge pull request #92808 from bruvzg/fix_ci_updates
Fix excessive canvas items updates.
-rw-r--r-- | scene/main/window.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/scene/main/window.cpp b/scene/main/window.cpp index 1c5f9cc663..39e5b6de33 100644 --- a/scene/main/window.cpp +++ b/scene/main/window.cpp @@ -1229,14 +1229,12 @@ void Window::_update_viewport_size() { } if (!Math::is_equal_approx(TS->font_get_global_oversampling(), font_oversampling)) { TS->font_set_global_oversampling(font_oversampling); - ci_updated = false; + if (!ci_updated) { + update_canvas_items(); + } } } - if (!ci_updated) { - update_canvas_items(); - } - notification(NOTIFICATION_WM_SIZE_CHANGED); if (embedder) { |