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

No Math numerical negation block. #4131

Open
matthewtebbs opened this issue Apr 15, 2018 · 0 comments
Open

No Math numerical negation block. #4131

matthewtebbs opened this issue Apr 15, 2018 · 0 comments

Comments

@matthewtebbs
Copy link
Contributor

Issue #4109 comments on a round trip issue when decompiling from an expression using the '-=' subtraction assigment operator.

This issue suggests adding a negation block which would replace the '0 - x' hack in this decompilation.

For example,

material.roughness -= myroughness

would decompile to

image

but with a '-x' negation block replacing the '0 - x' expression.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants