aboutsummaryrefslogtreecommitdiff
path: root/scene/3d/sprite_3d.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2017-08-05 16:19:36 -0300
committerJuan Linietsky2017-08-05 16:19:36 -0300
commite47ecc63ef50cfebe7ef141fc797637c9f875028 (patch)
tree89eceba736bcfd03c9cc5dce2d31aace6ea8f21d /scene/3d/sprite_3d.cpp
parentde9fb90dbf9473b91e75edbd063fb96f9ea4d262 (diff)
downloadgodot-e47ecc63ef50cfebe7ef141fc797637c9f875028.tar.gz
godot-e47ecc63ef50cfebe7ef141fc797637c9f875028.tar.zst
godot-e47ecc63ef50cfebe7ef141fc797637c9f875028.zip
Properly update frame range after modifying the vframe/hframes, closes #7624
Diffstat (limited to '')
-rw-r--r--scene/3d/sprite_3d.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/3d/sprite_3d.cpp b/scene/3d/sprite_3d.cpp
index 78e8e92af..1b9b58ceb 100644
--- a/scene/3d/sprite_3d.cpp
+++ b/scene/3d/sprite_3d.cpp
@@ -502,7 +502,7 @@ void Sprite3D::set_vframes(int p_amount) {
ERR_FAIL_COND(p_amount < 1);
vframes = p_amount;
_queue_update();
- _change_notify("frame");
+ _change_notify();
}
int Sprite3D::get_vframes() const {
@@ -514,7 +514,7 @@ void Sprite3D::set_hframes(int p_amount) {
ERR_FAIL_COND(p_amount < 1);
hframes = p_amount;
_queue_update();
- _change_notify("frame");
+ _change_notify();
}
int Sprite3D::get_hframes() const {