diff options
| author | MarianoGNU | 2016-06-19 22:16:41 -0300 |
|---|---|---|
| committer | MarianoGNU | 2016-06-20 17:06:19 -0300 |
| commit | 79c500bee1bb53164a78855419eca8543193f77f (patch) | |
| tree | 76394a11b51fe1156ea80e94776c488e7b858f02 /scene/2d/sprite.cpp | |
| parent | 38843a67a9fc1411feaa0106b83d499b511aa7c3 (diff) | |
| download | godot-79c500bee1bb53164a78855419eca8543193f77f.tar.gz godot-79c500bee1bb53164a78855419eca8543193f77f.tar.zst godot-79c500bee1bb53164a78855419eca8543193f77f.zip | |
Diffstat (limited to 'scene/2d/sprite.cpp')
| -rw-r--r-- | scene/2d/sprite.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/2d/sprite.cpp b/scene/2d/sprite.cpp index 3e6384ea2..27aa08ec5 100644 --- a/scene/2d/sprite.cpp +++ b/scene/2d/sprite.cpp @@ -120,6 +120,7 @@ void Sprite::set_texture(const Ref<Texture>& p_texture) { } #endif update(); + emit_signal("texture_changed"); item_rect_changed(); } @@ -323,6 +324,7 @@ void Sprite::_bind_methods() { ObjectTypeDB::bind_method(_MD("get_modulate"),&Sprite::get_modulate); ADD_SIGNAL(MethodInfo("frame_changed")); + ADD_SIGNAL(MethodInfo("texture_changed")); ADD_PROPERTYNZ( PropertyInfo( Variant::OBJECT, "texture", PROPERTY_HINT_RESOURCE_TYPE,"Texture"), _SCS("set_texture"),_SCS("get_texture")); ADD_PROPERTYNO( PropertyInfo( Variant::BOOL, "centered"), _SCS("set_centered"),_SCS("is_centered")); |
