Skip to content

Commit ce139f7

Browse files
committed
Fix editor parallax grid snap movement
1 parent 7b1ed52 commit ce139f7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scene/2d/parallax_2d.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ void Parallax2D::_notification(int p_what) {
6969

7070
#ifdef TOOLS_ENABLED
7171
void Parallax2D::_edit_set_position(const Point2 &p_position) {
72-
set_scroll_offset(p_position);
72+
// Avoids early return for grid snap compatibility
73+
scroll_offset = p_position;
74+
_update_scroll();
7375
}
7476
#endif // TOOLS_ENABLED
7577

0 commit comments

Comments
 (0)