From 49331fbd632688a67babcf27027fafbe29b13183 Mon Sep 17 00:00:00 2001 From: Poommetee Ketson Date: Sun, 23 Jul 2017 01:02:33 +0700 Subject: [PATCH] Sprite: fix disconnect nonexistent signal --- scene/2d/sprite.cpp | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/scene/2d/sprite.cpp b/scene/2d/sprite.cpp index 450f8e24741..b4690138195 100644 --- a/scene/2d/sprite.cpp +++ b/scene/2d/sprite.cpp @@ -105,20 +105,7 @@ void Sprite::set_texture(const Ref &p_texture) { if (p_texture == texture) return; -#ifdef DEBUG_ENABLED - if (texture.is_valid()) { - texture->disconnect(CoreStringNames::get_singleton()->changed, this, SceneStringNames::get_singleton()->update); - } -#endif texture = p_texture; - /* this should no longer be needed in 3.0 -#ifdef DEBUG_ENABLED - if (texture.is_valid()) { - texture->set_flags(texture->get_flags()); //remove repeat from texture, it looks bad in sprites - texture->connect(CoreStringNames::get_singleton()->changed, this, SceneStringNames::get_singleton()->update); - } -#endif -*/ update(); emit_signal("texture_changed"); item_rect_changed();