diff options
| author | Poommetee Ketson <poommetee@protonmail.com> | 2017-07-23 01:02:33 +0700 |
|---|---|---|
| committer | Poommetee Ketson <poommetee@protonmail.com> | 2017-07-23 01:02:33 +0700 |
| commit | 49331fbd632688a67babcf27027fafbe29b13183 (patch) | |
| tree | 8b9c5c8684d4bf4951ffff1a15cf8f4de0d29321 /scene/2d/sprite.cpp | |
| parent | 8495acc510e54c0d148b9d97c3f78f22ce16fa15 (diff) | |
| download | redot-engine-49331fbd632688a67babcf27027fafbe29b13183.tar.gz | |
Sprite: fix disconnect nonexistent signal
Diffstat (limited to 'scene/2d/sprite.cpp')
| -rw-r--r-- | scene/2d/sprite.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/scene/2d/sprite.cpp b/scene/2d/sprite.cpp index 450f8e2474..b469013819 100644 --- a/scene/2d/sprite.cpp +++ b/scene/2d/sprite.cpp @@ -105,20 +105,7 @@ void Sprite::set_texture(const Ref<Texture> &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(); |
