From ce139f75773d3fb36dac8a620ddc5849240b64aa Mon Sep 17 00:00:00 2001 From: Mark DiBarry Date: Sun, 19 Jan 2025 13:29:06 -0500 Subject: [PATCH] Fix editor parallax grid snap movement --- scene/2d/parallax_2d.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scene/2d/parallax_2d.cpp b/scene/2d/parallax_2d.cpp index 5cb9bf45f78..f07a89df3d2 100644 --- a/scene/2d/parallax_2d.cpp +++ b/scene/2d/parallax_2d.cpp @@ -69,7 +69,9 @@ void Parallax2D::_notification(int p_what) { #ifdef TOOLS_ENABLED void Parallax2D::_edit_set_position(const Point2 &p_position) { - set_scroll_offset(p_position); + // Avoids early return for grid snap compatibility + scroll_offset = p_position; + _update_scroll(); } #endif // TOOLS_ENABLED