We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
My use case is this:
folder.add(settings, 'numColors').min(1).max(101).step(2).name('Number of colors');
where I want the number of colors to be an odd number.
Once I change the slider in the GUI thou, the number will be changed to an even number.
This appears to be the relevant code segment:
dat.gui/src/dat/controllers/NumberController.js
Lines 71 to 73 in 51d1a37
The _v % this.__step !== 0 checks the parity of the value, which should take into account if the minimum/maximum value has a different parity.
_v % this.__step !== 0
The text was updated successfully, but these errors were encountered:
No branches or pull requests
My use case is this:
folder.add(settings, 'numColors').min(1).max(101).step(2).name('Number of colors');
where I want the number of colors to be an odd number.
Once I change the slider in the GUI thou, the number will be changed to an even number.
This appears to be the relevant code segment:
dat.gui/src/dat/controllers/NumberController.js
Lines 71 to 73 in 51d1a37
The
_v % this.__step !== 0
checks the parity of the value, which should take into account if the minimum/maximum value has a different parity.The text was updated successfully, but these errors were encountered: