mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-02-10 05:22:34 +08:00
rounding bugfix
This commit is contained in:
parent
3edc7a9c2d
commit
ad1fa47a83
@ -271,7 +271,7 @@ export const ComfyWidgets = {
|
||||
const { val, config } = getNumberDefaults(inputData, 0.5);
|
||||
return { widget: node.addWidget(widgetType, inputName, val,
|
||||
function (v) {
|
||||
this.value = Math.round(v/config.round)*config.round;
|
||||
this.value = Math.round(v/config.rounding)*config.rounding;
|
||||
}, config) };
|
||||
},
|
||||
INT(node, inputName, inputData, app) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user