mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-30 19:21:54 +00:00
Fix round setter
This commit is contained in:
@@ -181,7 +181,10 @@ function onCustomFloatCreated(this: LGraphNode) {
|
|||||||
const { precision } = this.properties
|
const { precision } = this.properties
|
||||||
return typeof precision === 'number' ? 10 ** -precision : 0.1
|
return typeof precision === 'number' ? 10 ** -precision : 0.1
|
||||||
},
|
},
|
||||||
set: (v) => (this.properties.step = v)
|
set: (v) => {
|
||||||
|
this.properties.round = v
|
||||||
|
valueWidget.callback?.(valueWidget.value)
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user