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

Organize 2D audio, camera, and physics in Viewport #79183

Merged
merged 1 commit into from
Mar 10, 2024

Conversation

aaronfranke
Copy link
Member

@aaronfranke aaronfranke commented Jul 8, 2023

This PR organizes the 2D audio listener, camera, and physics methods in Viewport to be close to each other, and put them right above the 3D methods.

In addition to the grouping those audio/camera/physics together, this also moves the 2D audio listener code together, since previously the audio listener methods were scattered in 3 different places.

This PR takes a piece out of #66744, split off for easy reviewing.

This PR is the 2D version of #51474.

@aaronfranke aaronfranke requested a review from a team as a code owner July 8, 2023 04:03
@YuriSizov YuriSizov added this to the 4.x milestone Jul 12, 2023
@aaronfranke aaronfranke force-pushed the viewport-group-2d branch 2 times, most recently from 82808cb to 3b193df Compare March 9, 2024 21:21
Copy link
Member

@akien-mga akien-mga left a comment

Choose a reason for hiding this comment

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

Seems good to me conceptually.

I'll let @AThousandShips confirm her code review before merging, as I didn't review in depth myself.

@akien-mga akien-mga modified the milestones: 4.x, 4.3 Mar 9, 2024
Copy link
Member

@AThousandShips AThousandShips left a comment

Choose a reason for hiding this comment

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

LGTM, save for the comment, glanced over the moved code but don't expect any issues in them just being copied

scene/main/viewport.h Outdated Show resolved Hide resolved
@akien-mga akien-mga merged commit f5c0182 into godotengine:master Mar 10, 2024
16 checks passed
@akien-mga
Copy link
Member

Thanks!

@aaronfranke aaronfranke deleted the viewport-group-2d branch March 11, 2024 02:40
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.

4 participants