worldmaking / mischmasch

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

speaker is not being added to scene from file #229

Closed michaelpalumbo closed 1 year ago

michaelpalumbo commented 1 year ago

problem was that in Patch.js:rebuild(), the the for..loop was adding the cables to the scene at each iteration, and if a src or dest op hadn't been added yet it was throwing this error. now all ops are added first, and all found connections are added to a cables array. after ops for..loop is done, iterate the cables array and add them to scene then.