mirror of
https://github.com/godotengine/godot
synced 2024-09-16 02:27:37 +00:00
Fix excessive canvas items updates.
This commit is contained in:
parent
96a386f3c4
commit
864a93fdbf
|
@ -1229,14 +1229,12 @@ void Window::_update_viewport_size() {
|
||||||
}
|
}
|
||||||
if (!Math::is_equal_approx(TS->font_get_global_oversampling(), font_oversampling)) {
|
if (!Math::is_equal_approx(TS->font_get_global_oversampling(), font_oversampling)) {
|
||||||
TS->font_set_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);
|
notification(NOTIFICATION_WM_SIZE_CHANGED);
|
||||||
|
|
||||||
if (embedder) {
|
if (embedder) {
|
||||||
|
|
Loading…
Reference in a new issue