2
0
mirror of https://github.com/godotengine/godot.git synced 2025-04-25 01:48:08 +08:00

Merge pull request from markdibarry/parallax-remove-editor-offset-guard

Fix editor `Parallax2D` grid snap movement
This commit is contained in:
Thaddeus Crews 2025-01-31 09:15:47 -06:00
commit 3d6821b724
No known key found for this signature in database
GPG Key ID: 62181B86FE9E5D84

@ -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