fix fdm client use of platform.add/remove
This commit is contained in:
parent
d4d68c2870
commit
ea830a681a
1 changed files with 2 additions and 2 deletions
|
|
@ -79,7 +79,7 @@
|
|||
function filterSynth() {
|
||||
api.widgets.filter((widget) => {
|
||||
if (widget.track.synth) {
|
||||
api.const.SPACE.platform.remove(widget.mesh);
|
||||
api.const.SPACE.world.remove(widget.mesh);
|
||||
kiri.Widget.Groups.remove(widget);
|
||||
}
|
||||
return !widget.track.synth
|
||||
|
|
@ -295,7 +295,7 @@
|
|||
sw._move(fwp.x, fwp.y, fwp.z);
|
||||
api.widgets.add(sw);
|
||||
sw.track.synth = true;
|
||||
api.const.SPACE.platform.add(sw.mesh);
|
||||
api.const.SPACE.world.add(sw.mesh);
|
||||
}
|
||||
});
|
||||
api.event.on("slice.end", () => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue