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

Rename Texture.get_data() to get_image() #47435

Merged
merged 1 commit into from
Mar 29, 2021

Conversation

madmiraal
Copy link
Contributor

Texture.get_data() returns an Image, not the underlying byte data. Therefore, this PR renames get_data() to get_image(). The underlying byte data can then be retrieved using the more intuitive Texture.get_image().get_data().

Part of #16863.

@akien-mga akien-mga merged commit bc29f4b into godotengine:master Mar 29, 2021
@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.

None yet

3 participants