mirror of
https://github.com/godotengine/godot.git
synced 2025-04-25 01:48:08 +08:00
Merge pull request #101808 from markdibarry/parallax-remove-editor-offset-guard
Fix editor `Parallax2D` grid snap movement
This commit is contained in:
commit
3d6821b724
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user