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

Use single-precision floats in GradientEdit #62494

Merged
merged 1 commit into from
Jun 28, 2022

Conversation

TechnoPorg
Copy link
Contributor

Gradient itself only uses single-precision floats (#21922 (comment)), so using double-precision floats in GradientEdit is both unnecessary, and creates casting issues, as seen here when editing a Gradient in a binary compiled with float=64:
image

Gradient itself only uses single-precision floats, so using double-precision floats in GradientEdit is both unnecessary, and creates casting issues.
@TechnoPorg TechnoPorg requested a review from a team as a code owner June 28, 2022 18:11
@Calinou Calinou added this to the 4.0 milestone Jun 28, 2022
@akien-mga akien-mga merged commit 0cd049e into godotengine:master Jun 28, 2022
@akien-mga
Copy link
Member

Thanks!

@TechnoPorg TechnoPorg deleted the gradient-fix-precision branch June 30, 2022 00:58
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.

3 participants