From 0511f48c4964bf95a551a5afb4580e67c8f6148b 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 a83cccdff31..c7a33585b57 100644 --- a/scene/main/viewport.cpp +++ b/scene/main/viewport.cpp @@ -730,6 +730,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"); }