From 616ab4fac200170bc0d2ba1958e424fd309fc494 Mon Sep 17 00:00:00 2001 From: qarmin Date: Mon, 14 Oct 2019 11:40:55 +0200 Subject: Small fixes to redundand code, copy paste bugs --- scene/3d/sprite_3d.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'scene/3d') 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"); -- cgit v1.2.3