Skip to content

Set graphic effect to zero if it's Infinity #2437

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

Merged
merged 1 commit into from
Jun 11, 2020

Conversation

apple502j
Copy link
Contributor

Resolves

Resolves #2317

Proposed Changes

If the graphic value is not finite (for example Infinity), cast it to zero, if it's not already clamped

Reason for Changes

Some effects become strange if the value is Infinity. I chose zero because 1) all effects should accept 0 as a value and 2) not all effects have maximum/minimum values. (For those that have it (currently ghost and brightness), this change will NOT apply)

@ericrosenbaum ericrosenbaum added this to the Schedule Review milestone Jun 11, 2020
Copy link
Contributor

@fsih fsih left a comment

Choose a reason for hiding this comment

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

LG! Thank you for your help!

@fsih fsih merged commit b67ba75 into scratchfoundation:develop Jun 11, 2020
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.

Graphic Effects can have Infinity as argument
3 participants