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

Update Camera2D gizmos when screen size changes #92992

Conversation

KoBeWi
Copy link
Member

@KoBeWi KoBeWi commented Jun 10, 2024

Fixes #92976

Technically it causes unnecessary redraws when other settings change, but it's not really a problem.

@KoBeWi KoBeWi added this to the 4.3 milestone Jun 10, 2024
@KoBeWi KoBeWi requested a review from a team as a code owner June 10, 2024 17:15
scene/2d/camera_2d.h Outdated Show resolved Hide resolved
@KoBeWi KoBeWi force-pushed the buy_a_new_camera_every_time_project_settings_change branch from d8134f5 to 3376f67 Compare June 10, 2024 20:21
Copy link
Member

@Calinou Calinou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally, it works as expected.

If the project_settings_changed signal had an array of modified setting names, we could be more selective on this, but it'll do for now. This is effectively an editor-only change anyway, so runtime performance is unaffected.

@KoBeWi KoBeWi force-pushed the buy_a_new_camera_every_time_project_settings_change branch from 3376f67 to 9f7f180 Compare June 11, 2024 16:38
@akien-mga akien-mga merged commit b297234 into godotengine:master Jun 12, 2024
16 checks passed
@akien-mga
Copy link
Member

Thanks!

@KoBeWi KoBeWi deleted the buy_a_new_camera_every_time_project_settings_change branch June 12, 2024 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants