summaryrefslogtreecommitdiff
path: root/scene/3d
diff options
context:
space:
mode:
authorqarmin <mikrutrafal54@gmail.com>2019-10-14 11:40:55 +0200
committerqarmin <mikrutrafal54@gmail.com>2019-10-14 11:40:55 +0200
commit616ab4fac200170bc0d2ba1958e424fd309fc494 (patch)
treeb39dcd6dfe36cc5c99ce7f8790631ac242b1217e /scene/3d
parent1fed266bf5452b30376db62495f4985f6975f2c1 (diff)
Small fixes to redundand code, copy paste bugs
Diffstat (limited to 'scene/3d')
-rw-r--r--scene/3d/sprite_3d.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/scene/3d/sprite_3d.cpp b/scene/3d/sprite_3d.cpp
index aec672d2c7..a8d2f4d415 100644
--- a/scene/3d/sprite_3d.cpp
+++ b/scene/3d/sprite_3d.cpp
@@ -577,9 +577,8 @@ void Sprite3D::set_frame(int p_frame) {
ERR_FAIL_INDEX(p_frame, int64_t(vframes) * hframes);
- if (frame != p_frame)
+ frame = p_frame;
- frame = p_frame;
_queue_update();
_change_notify("frame");