summaryrefslogtreecommitdiff
path: root/scene/2d
diff options
context:
space:
mode:
authorRobert Hernandez <killerjaguar26@gmail.com>2017-03-29 19:30:24 -0400
committerRobert Hernandez <killerjaguar26@gmail.com>2017-06-29 10:49:24 -0400
commitf0f407e76eafdfe76b9439c7e527f085a6ff22d9 (patch)
treebcf8b3ecb7df8cee85de7a0611688cd14cafd1ab /scene/2d
parent198bd9db02950d261c83b0c383fe737df3c5f152 (diff)
Texture region now updates when changing an Atlas
- Removed atlas_changed signal for AtlasTexture - Changes are now handled by _notify_change - Removed unneccesary signal connections - Texture preview now updates in real-time Fixed TextureRegionEditor constantly regenerating
Diffstat (limited to 'scene/2d')
-rw-r--r--scene/2d/sprite.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/2d/sprite.cpp b/scene/2d/sprite.cpp
index 450f8e2474..c4590c100d 100644
--- a/scene/2d/sprite.cpp
+++ b/scene/2d/sprite.cpp
@@ -122,6 +122,7 @@ void Sprite::set_texture(const Ref<Texture> &p_texture) {
update();
emit_signal("texture_changed");
item_rect_changed();
+ _change_notify("texture");
}
void Sprite::set_normal_map(const Ref<Texture> &p_texture) {