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

[3.x] Fix get_data() for GradientTexture2D #61591

Merged
merged 1 commit into from
Jun 1, 2022

Conversation

fire-forge
Copy link
Contributor

@fire-forge fire-forge commented Jun 1, 2022

Fixes GradientTexture2D.get_data() always returning null.

The rename of Texture.get_data() to get_image() (#47435) was lost in the process of backporting GradientTexture2D. The function was there, but it was using the 4.0 name instead of the 3.x name and simply renaming the function fixes the issue entirely.

As a workaround, this can be used in place of get_data() until this PR is merged. I'm using this workaround in my own project.

VisualServer.texture_get_data(texture.get_rid())

@fire-forge fire-forge changed the title Fix get_data() for GradientTexture2D [3.x] Fix get_data() for GradientTexture2D Jun 1, 2022
@akien-mga akien-mga added this to the 3.5 milestone Jun 1, 2022
@akien-mga akien-mga merged commit e9d3748 into godotengine:3.x Jun 1, 2022
@akien-mga
Copy link
Member

Thanks!

@fire-forge fire-forge deleted the gt2d_get_data branch June 1, 2022 13:10
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

2 participants