Skip to content

Commit 3d6821b

Browse files
committed
Merge pull request godotengine#101808 from markdibarry/parallax-remove-editor-offset-guard
Fix editor `Parallax2D` grid snap movement
2 parents 3c3ceee + ce139f7 commit 3d6821b

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)