mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Properly update frame range after modifying the vframe/hframes, closes #7624
(cherry picked from commit e47ecc63ef)
This commit is contained in:
parent
a59e1a50bf
commit
61b43492a0
2 changed files with 4 additions and 4 deletions
|
|
@ -501,7 +501,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 {
|
||||
|
||||
|
|
@ -513,7 +513,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 {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue