fix widget list re-fetch post support synth
This commit is contained in:
parent
f999e8c65c
commit
b3b356fbb5
2 changed files with 5 additions and 3 deletions
|
|
@ -52,9 +52,11 @@ function prepareSlices(callback, scale = 1, offset = 0) {
|
|||
view.set_slice();
|
||||
conf.save();
|
||||
|
||||
// allow client.js to generate support widgets
|
||||
event.emit('slice.begin', settings.mode);
|
||||
|
||||
const slicing = widgets
|
||||
// refresh widget list because slice.begin may generate supports
|
||||
const slicing = api.widgets.all()
|
||||
.slice()
|
||||
.filter(w => !w.track.ignore && !w.meta.disabled);
|
||||
const totalv = slicing.map(w => w.getVertices().count).reduce((a,v) => a + v);
|
||||
|
|
|
|||
Loading…
Reference in a new issue