From de4a3fa151d2cef139149bb2b878ec8923ba2ce8 Mon Sep 17 00:00:00 2001 From: kobewi Date: Mon, 3 Jul 2023 21:29:37 +0200 Subject: Unify and streamline connecting to Resource changes --- scene/2d/gpu_particles_2d.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'scene/2d/gpu_particles_2d.cpp') diff --git a/scene/2d/gpu_particles_2d.cpp b/scene/2d/gpu_particles_2d.cpp index 52455e1f9e..8c5782dc41 100644 --- a/scene/2d/gpu_particles_2d.cpp +++ b/scene/2d/gpu_particles_2d.cpp @@ -30,7 +30,6 @@ #include "gpu_particles_2d.h" -#include "core/core_string_names.h" #include "scene/resources/atlas_texture.h" #include "scene/resources/particle_process_material.h" #include "scene/scene_string_names.h" @@ -357,13 +356,13 @@ Rect2 GPUParticles2D::capture_rect() const { void GPUParticles2D::set_texture(const Ref &p_texture) { if (texture.is_valid()) { - texture->disconnect(CoreStringNames::get_singleton()->changed, callable_mp(this, &GPUParticles2D::_texture_changed)); + texture->disconnect_changed(callable_mp(this, &GPUParticles2D::_texture_changed)); } texture = p_texture; if (texture.is_valid()) { - texture->connect(CoreStringNames::get_singleton()->changed, callable_mp(this, &GPUParticles2D::_texture_changed)); + texture->connect_changed(callable_mp(this, &GPUParticles2D::_texture_changed)); } _update_collision_size(); queue_redraw(); -- cgit v1.2.3