From b5b6d14d37364529e1d6f051ac3927b85c0d75dd Mon Sep 17 00:00:00 2001 From: kobewi Date: Mon, 22 Aug 2022 16:34:47 +0200 Subject: [PATCH] Fix Viewport size change not updating textures (cherry picked from commit 3a4a4aeadec36324da394238cf0f86dbac345e93) --- scene/main/viewport.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp index c80ee8a4b..5b19ca81e 100644 --- a/scene/main/viewport.cpp +++ b/scene/main/viewport.cpp @@ -708,6 +708,10 @@ void Viewport::set_size(const Size2 &p_size) { _update_stretch_transform(); update_configuration_warning(); + for (Set::Element *E = viewport_textures.front(); E; E = E->next()) { + E->get()->emit_changed(); + } + emit_signal("size_changed"); }