mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Fix editor parallax grid snap movement
This commit is contained in:
@@ -69,7 +69,9 @@ void Parallax2D::_notification(int p_what) {
|
|||||||
|
|
||||||
#ifdef TOOLS_ENABLED
|
#ifdef TOOLS_ENABLED
|
||||||
void Parallax2D::_edit_set_position(const Point2 &p_position) {
|
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
|
#endif // TOOLS_ENABLED
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user