1
mirror of https://github.com/comfyanonymous/ComfyUI.git synced 2025-08-04 07:52:46 +08:00

ui: hide decimal fraction for int fields

This commit is contained in:
Guo Y.K
2023-03-21 17:42:33 +08:00
parent aa2ddfabb9
commit 49705dc947

View File

@@ -103,6 +103,7 @@ export const ComfyWidgets = {
},
INT(node, inputName, inputData) {
const { val, config } = getNumberDefaults(inputData, 1);
Object.assign(config, { precision: 0 })
return {
widget: node.addWidget(
"number",