Skip to content

Commit 56a8db1

Browse files
authored
Merge pull request #92808 from bruvzg/fix_ci_updates
Fix excessive canvas items updates.
2 parents 96a386f + 864a93f commit 56a8db1

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

scene/main/window.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1229,14 +1229,12 @@ void Window::_update_viewport_size() {
12291229
}
12301230
if (!Math::is_equal_approx(TS->font_get_global_oversampling(), font_oversampling)) {
12311231
TS->font_set_global_oversampling(font_oversampling);
1232-
ci_updated = false;
1232+
if (!ci_updated) {
1233+
update_canvas_items();
1234+
}
12331235
}
12341236
}
12351237

1236-
if (!ci_updated) {
1237-
update_canvas_items();
1238-
}
1239-
12401238
notification(NOTIFICATION_WM_SIZE_CHANGED);
12411239

12421240
if (embedder) {

0 commit comments

Comments
 (0)