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 0 check before dividing color by alpha #7478

Merged
merged 1 commit into from
Jan 18, 2025
Merged

Conversation

davepagurek
Copy link
Contributor

Resolves #7477

Changes:

  • Checks if alpha is > 0 before dividing by alpha to avoid NaNs

Screenshots of the change:

The test sketch in the issue now looks like this:
image

@davepagurek davepagurek merged commit ad777f2 into dev-2.0 Jan 18, 2025
2 checks passed
@davepagurek davepagurek deleted the fix/nan-colors branch January 18, 2025 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant