offset supports when moved from widget master to synth

This commit is contained in:
Stewart Allen 2020-04-24 16:21:21 -04:00
commit 01a436861e

View file

@ -558,11 +558,12 @@ let gs_kiri_fdm = exports;
}
slices.forEach((slice,index) => {
if (!slice.supports) return;
if (sslices[index].supports) {
sslices[index].supports.appendAll(slice.supports);
} else {
sslices[index].supports = slice.supports;
if (!sslices[index].supports) {
sslices[index].supports = [];
}
sslices[index].supports.appendAll(slice.supports.map(p => {
return p.clone().move(widget.track.pos);
}));
});
});
swidget.support = true;