Use step2 for ints

This commit is contained in:
Austin Mroz
2026-01-20 13:51:51 -08:00
parent c90e4a22aa
commit e446859be8

View File

@@ -132,7 +132,7 @@ function onCustomIntCreated(this: LGraphNode) {
valueWidget.callback?.(valueWidget.value)
}
})
Object.defineProperty(valueWidget.options, 'step', {
Object.defineProperty(valueWidget.options, 'step2', {
get: () => this.properties.step ?? 1,
set: (v) => {
this.properties.step = v