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

Change AudioStreamPlayer autoplay and GLTFBufferView getters to be const #86907

Merged
merged 1 commit into from
Feb 9, 2024

Conversation

aaronfranke
Copy link
Member

@aaronfranke aaronfranke commented Jan 7, 2024

I wanted to use these functions with const AudioStreamPlayer *p_ etc parameters, but I found that these methods were not marked as const, so I could not use them. This PR fixes this and adds compatibility methods.

@aaronfranke aaronfranke added this to the 4.3 milestone Jan 7, 2024
@aaronfranke aaronfranke requested review from a team as code owners January 7, 2024 03:16
@aaronfranke aaronfranke requested a review from a team as a code owner January 7, 2024 03:21
Copy link
Member

@fire fire left a comment

Choose a reason for hiding this comment

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

The theory is that add const breaks nothing. So it's ok.

@akien-mga akien-mga merged commit dd27523 into godotengine:master Feb 9, 2024
16 checks passed
@akien-mga
Copy link
Member

Thanks!

@aaronfranke aaronfranke deleted the getter-const branch February 9, 2024 16:52
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