Commit 89d0e9ab authored by comfyanonymous's avatar comfyanonymous
Browse files

Fix int widgets rounding.

parent a56d02ef
......@@ -229,7 +229,7 @@ function createIntWidget(node, inputName, inputData, app, isSeedInput) {
val,
function (v) {
const s = this.options.step / 10;
this.value = Math.round(v / s) * s;
this.value = Math.round((v - this.options.min) / s) * s + this.options.min;
},
config
),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment