fix subtract
This commit is contained in:
parent
c7298d2a9f
commit
b82c411313
4 changed files with 10 additions and 6 deletions
|
|
@ -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();
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue