diff options
author | Juan Linietsky <reduzio@gmail.com> | 2017-08-05 16:19:36 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2017-08-05 16:19:36 -0300 |
commit | e47ecc63ef50cfebe7ef141fc797637c9f875028 (patch) | |
tree | 89eceba736bcfd03c9cc5dce2d31aace6ea8f21d /scene/2d | |
parent | de9fb90dbf9473b91e75edbd063fb96f9ea4d262 (diff) |
Properly update frame range after modifying the vframe/hframes, closes #7624
Diffstat (limited to 'scene/2d')
-rw-r--r-- | scene/2d/sprite.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/2d/sprite.cpp b/scene/2d/sprite.cpp index ad34dfd63a..01d101a89c 100644 --- a/scene/2d/sprite.cpp +++ b/scene/2d/sprite.cpp @@ -237,7 +237,7 @@ void Sprite::set_vframes(int p_amount) { vframes = p_amount; update(); item_rect_changed(); - _change_notify("frame"); + _change_notify(); } int Sprite::get_vframes() const { @@ -250,7 +250,7 @@ void Sprite::set_hframes(int p_amount) { hframes = p_amount; update(); item_rect_changed(); - _change_notify("frame"); + _change_notify(); } int Sprite::get_hframes() const { |