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

Add placeholder RID to GradientTexture1D #81198

Merged
merged 1 commit into from
Sep 1, 2023

Conversation

KoBeWi
Copy link
Member

@KoBeWi KoBeWi commented Aug 31, 2023

Fixes #81166
My previous PR made assigning RID deferred, so the material used invalid value. This PR ensures that the RID does not change during the lifetime of the texture (same as in GradientTexture2D).

I also made Gradient changed connect to deferred update, for consistency (it doesn't have obvious detrimental effects).

Copy link
Contributor

@YuriSizov YuriSizov left a comment

Choose a reason for hiding this comment

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

Haven't tested, but makes sense. Another discrepancy between 1D and 2D.

@akien-mga akien-mga merged commit 80bfca2 into godotengine:master Sep 1, 2023
15 checks passed
@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.

Particles rendered incorrectly with a gradient texture
4 participants