From c5b4d8e61e583f05e217635345013985689174b2 Mon Sep 17 00:00:00 2001 From: Marcus Paulsson Date: Mon, 30 Sep 2024 13:54:45 +0200 Subject: [PATCH] Removed immediate return before update for set_scoll_offset --- scene/2d/parallax_2d.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/scene/2d/parallax_2d.cpp b/scene/2d/parallax_2d.cpp index c6176390dc1..8253c832bbf 100644 --- a/scene/2d/parallax_2d.cpp +++ b/scene/2d/parallax_2d.cpp @@ -187,10 +187,6 @@ int Parallax2D::get_repeat_times() const { } void Parallax2D::set_scroll_offset(const Point2 &p_offset) { - if (p_offset == scroll_offset) { - return; - } - scroll_offset = p_offset; _update_scroll();