Add fallback value for step

Under some circumstances likely related to the frontend ECS refactor,
step will fail to be assigned. This will likely get fixed as a frontend
bug, but there's no cost to applying a patch on the VHS side
This commit is contained in:
Austin Mroz
2026-09-01 23:42:55 -07:00
parent 115de7a9d9
commit 05dc70c6ed
+1 -1
View File
@@ -2220,7 +2220,7 @@ app.registerExtension({
if (v == 0) {
return
}
const s = this.options.step
const s = this.options.step ?? 1
let sh = this.options.mod ?? 0
this.value = Math.round((v - sh) / s) * s + sh
},