CADmium-Co / CADmium

A CAD program that runs in the browser
https://cadmium-co.github.io/CADmium/
Other
1.35k stars 51 forks source link

Fix extrusions #76

Closed MattFerraro closed 1 month ago

MattFerraro commented 1 month ago

The main issue as far as I can tell is that when you do this:

currentlySelected.subscribe(store, {
    console.log($currentlySelected)
})

You only have access to the old value of $currentlySelected. To get the latest you have to use:

currentlySelected.subscribe(store, {
    console.log(store)
})

This fixes https://github.com/CADmium-Co/CADmium/issues/71