From 3a4a4aeadec36324da394238cf0f86dbac345e93 Mon Sep 17 00:00:00 2001 From: kobewi Date: Mon, 22 Aug 2022 16:34:47 +0200 Subject: Fix Viewport size change not updating textures --- scene/main/viewport.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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")); } -- cgit v1.2.3