fix subtract

This commit is contained in:
Stewart Allen 2022-04-20 17:26:01 -04:00
commit b82c411313
4 changed files with 10 additions and 6 deletions

View file

@ -384,10 +384,10 @@ const tool = {
return { id: m.id, matrix: m.matrix, tool: m.tool() }
}))
.then(data => {
let group = api.group.new([new mesh.model({
let group = api.group.new(data.map(el => new mesh.model({
file: `subtracted`,
mesh: data
})]).promote();
mesh: el
}) )).promote();
api.selection.set([group]);
api.log.emit('subtract complete').unpin();
});