-
-
Notifications
You must be signed in to change notification settings - Fork 21.6k
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
Fix OpenSimplexNoise get_image() swap axes #30424
Conversation
I'm not against this change, but I want to note that it breaks compat with 3.1 |
We can switch |
@raphael10241024 Is this still desired? If so, it needs to be rebased on the latest master branch. While there are no conflicts, rebasing is important so that reviewers can easily test the PR. If not, abandoned pull requests will be closed in the future as announced here. |
rebased |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This fix is very simple and makes sense, currently i
is the iterator for the height (Y axis) and j
is the iterator for the width (X axis), so the order should be j, i
.
The alternative is @Anutrix's suggestion of swapping width and height. I don't think it actually matters which is which, so I guess this depends on @JFonS's personal preference.
I also tend to prefer swapping Edit: Actually let's keep it as is,
|
Thanks! |
Cherry-picked for 3.4. Note that this breaks compatibility. Users who want to preserve the behavior of 3.3 and earlier can swap the arguments in their call to |
fix #30356