diff --git a/src/extensions/core/customCombo.ts b/src/extensions/core/customCombo.ts index d4a55367ef..00117f07c3 100644 --- a/src/extensions/core/customCombo.ts +++ b/src/extensions/core/customCombo.ts @@ -170,7 +170,16 @@ function onCustomFloatCreated(this: LGraphNode) { if (this.properties.step) return this.properties.step const { precision } = this.properties - return typeof precision === 'number' ? 10 ** precision : 1 + return typeof precision === 'number' ? 5 * 10 ** -precision : 1 + }, + set: (v) => (this.properties.step = v) + }) + Object.defineProperty(valueWidget.options, 'round', { + get: () => { + if (this.properties.round) return this.properties.round + + const { precision } = this.properties + return typeof precision === 'number' ? 10 ** -precision : 0.1 }, set: (v) => (this.properties.step = v) })