From 4fd3234685475e282b668f8a5007202b392e317e Mon Sep 17 00:00:00 2001 From: JoltedJon <14169426+JoltedJon@users.noreply.github.com> Date: Wed, 15 Jul 2026 11:21:41 -0400 Subject: [PATCH] GH-1307 Fix texture not appearing until restart --- scene/resources/atlas_texture.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scene/resources/atlas_texture.cpp b/scene/resources/atlas_texture.cpp index 445e81b3a7..00e32e090c 100644 --- a/scene/resources/atlas_texture.cpp +++ b/scene/resources/atlas_texture.cpp @@ -82,11 +82,11 @@ void AtlasTexture::set_atlas(const Ref &p_atlas) { return; } // Support recursive AtlasTextures. - if (Ref(atlas).is_valid()) { + if (atlas.is_valid()) { atlas->disconnect_changed(callable_mp((Resource *)this, &AtlasTexture::emit_changed)); } atlas = p_atlas; - if (Ref(atlas).is_valid()) { + if (atlas.is_valid()) { atlas->connect_changed(callable_mp((Resource *)this, &AtlasTexture::emit_changed)); }