worldmaking / mischmasch

https://www.alicelab.world/msvr
MIT License
9 stars 1 forks source link

app breaks when turning knob on minimum_patch.json #189

Closed michaelpalumbo closed 1 year ago

michaelpalumbo commented 1 year ago
D:\github\mischmasch\Components\Patch\Patch.js:199
        for(let i = 0; i < this.document[opID].inputs.length; i++){

   ^

TypeError: Cannot read property 'inputs' of 
undefined
    at Patch.update (D:\github\mischmasch\Components\Patch\Patch.js:199:48)
    at Object.updateHandStateMachine (D:\github\mischmasch\app.js:601:13)
    at Object.updateStateMachines (D:\github\mischmasch\app.js:444:37)
    at Immediate.animate (D:\github\mischmasch\app.js:2190:5)
    at processImmediate (internal/timers.js:461:21)
michaelpalumbo commented 1 year ago

this is likely due to the change in the op structure. let's see...

michaelpalumbo commented 1 year ago

update: minimum_patch.json had underscores in its uuids, which breaks a fair bit of other elements of mischmasch. This was resolved in #184 which just removes all hyphens from uuid4v() at creation.