Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When Camera2D enters tree, ensure first update is not lost #63580

Merged
merged 2 commits into from
Jul 28, 2022

Conversation

madmiraal
Copy link
Contributor

Currently, after initialising Camera2D, the camera is set to uninitialised again. The result is, the first call to _update_scroll() is used to initialise the camera and not used to update the scroll. This PR ensures that the camera is set to uninitialised before initialising the camera not after.

In addition, this PR ensures that changes to Camera2D's limits don't affect smoothed_camera_pos i.e. applies the #39567 and #2764 fix to 4c23fe6 included in #63083.

Fixes #63330.

@akien-mga akien-mga merged commit c4d7a5d into godotengine:master Jul 28, 2022
@akien-mga
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Camera2D changing map limits results in smooth scrolling although limit_smoothed is false
3 participants