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:
+1
-1
@@ -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
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user