summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkobewi <kobewi4e@gmail.com>2022-08-22 16:34:47 +0200
committerkobewi <kobewi4e@gmail.com>2022-08-22 16:34:47 +0200
commit3a4a4aeadec36324da394238cf0f86dbac345e93 (patch)
tree4d3ddbb92f123b3796b236d0d19f5d6600b6e426
parentff7c10f709448755d8f1e1d2a98db2d2c1858d4c (diff)
Fix Viewport size change not updating textures
-rw-r--r--scene/main/viewport.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp
index 584fad9648..d11f4ae284 100644
--- a/scene/main/viewport.cpp
+++ b/scene/main/viewport.cpp
@@ -801,6 +801,10 @@ void Viewport::_set_size(const Size2i &p_size, const Size2i &p_size_2d_override,
update_canvas_items();
+ for (ViewportTexture *E : viewport_textures) {
+ E->emit_changed();
+ }
+
emit_signal(SNAME("size_changed"));
}