clear can only be done pre-slice, not during filter synth
This commit is contained in:
parent
3283d879ef
commit
2cc92dea6f
2 changed files with 3 additions and 6 deletions
|
|
@ -871,6 +871,9 @@
|
||||||
setOpacity(color.slicing_opacity);
|
setOpacity(color.slicing_opacity);
|
||||||
|
|
||||||
STACKS.clear();
|
STACKS.clear();
|
||||||
|
if (mode === 'FDM') {
|
||||||
|
KIRI.client.clear();
|
||||||
|
}
|
||||||
KIRI.client.sync();
|
KIRI.client.sync();
|
||||||
KIRI.client.rotate(settings);
|
KIRI.client.rotate(settings);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -22,19 +22,13 @@
|
||||||
SPACE = api.const.SPACE;
|
SPACE = api.const.SPACE;
|
||||||
|
|
||||||
function filterSynth() {
|
function filterSynth() {
|
||||||
// remove synth widgets
|
|
||||||
let clear = false;
|
|
||||||
api.widgets.filter((widget) => {
|
api.widgets.filter((widget) => {
|
||||||
if (widget.track.synth) {
|
if (widget.track.synth) {
|
||||||
api.const.SPACE.platform.remove(widget.mesh);
|
api.const.SPACE.platform.remove(widget.mesh);
|
||||||
kiri.Widget.Groups.remove(widget);
|
kiri.Widget.Groups.remove(widget);
|
||||||
clear = true;
|
|
||||||
}
|
}
|
||||||
return !widget.track.synth
|
return !widget.track.synth
|
||||||
});
|
});
|
||||||
if (clear) {
|
|
||||||
kiri.client.clear();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
api.event.on("mode.set", mode => {
|
api.event.on("mode.set", mode => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue