-
-
Notifications
You must be signed in to change notification settings - Fork 963
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
Correct odd layer GUI description #5793
Conversation
Isn't the first layer numbered "0"? |
In code yes, but in GUI first layer is "1".
|
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.
Nice catch!
Can we change the code logic to make it align with the UI, but leave the text/description unchanged?
e.g.
change code from layer_id % 2 == 1;
to layer_id % 2 == 0;
Sure we can, but |
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.
The catch with changing user facing text is that it will invalidate all existing translations
Translations could be updated, it's updated on GUI changes anyway. |
9f15b35
to
2689e9e
Compare
Good point :) |
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.
LGTM
Currently every second layer for "on odd layer" options is checked as
layer_id % 2 == 1
. Though from mathematics POV it's correct, but in GUI first layer is one and not zero, thus actually option is applied for even layers.I guess this is SuperSlicer legacy, and this PR fix this confusing description in GUI.