Fix round setter

This commit is contained in:
Austin Mroz
2026-01-20 14:27:00 -08:00
parent fffd3f8d9f
commit 0d17574a15

View File

@@ -181,7 +181,10 @@ function onCustomFloatCreated(this: LGraphNode) {
const { precision } = this.properties
return typeof precision === 'number' ? 10 ** -precision : 0.1
},
set: (v) => (this.properties.step = v)
set: (v) => {
this.properties.round = v
valueWidget.callback?.(valueWidget.value)
}
})
}