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

Reset viewport in set_default_camera #860

Merged
merged 1 commit into from
Nov 17, 2024
Merged

Conversation

agerasev
Copy link
Contributor

Hi, thank you for such an awesome crate!

Currently set_default_camera does not reset viewport, so the following workaround needs to be used:

// Workaround to reset viewport
set_camera(&Camera2D::default());

set_default_camera();

This pull request fixes that.

@not-fl3 not-fl3 merged commit a66852a into not-fl3:master Nov 17, 2024
2 checks passed
@not-fl3
Copy link
Owner

not-fl3 commented Nov 17, 2024

Thanks for PR!

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

Successfully merging this pull request may close these issues.

2 participants