fix belt rotate with new shared point array
This commit is contained in:
parent
bbc4d0d374
commit
e0fa5a7795
2 changed files with 3 additions and 3 deletions
|
|
@ -164,7 +164,7 @@ const client = exports({
|
||||||
},
|
},
|
||||||
|
|
||||||
// widget sync
|
// widget sync
|
||||||
sync(widgets) {
|
sync(widgets, copy) {
|
||||||
if (!widgets) {
|
if (!widgets) {
|
||||||
widgets = kiri.api.widgets.all();
|
widgets = kiri.api.widgets.all();
|
||||||
}
|
}
|
||||||
|
|
@ -180,7 +180,7 @@ const client = exports({
|
||||||
meta: widget.meta,
|
meta: widget.meta,
|
||||||
group: widget.group.id,
|
group: widget.group.id,
|
||||||
track: widget.track,
|
track: widget.track,
|
||||||
vertices: vertices,
|
vertices: copy ? vertices.slice() : vertices,
|
||||||
position: widget.mesh.position,
|
position: widget.mesh.position,
|
||||||
}, done => {
|
}, done => {
|
||||||
widget.modified = false;
|
widget.modified = false;
|
||||||
|
|
|
||||||
|
|
@ -115,7 +115,7 @@ function prepareSlices(callback, scale = 1, offset = 0) {
|
||||||
// force re-sync in belt mode
|
// force re-sync in belt mode
|
||||||
client.clear();
|
client.clear();
|
||||||
}
|
}
|
||||||
client.sync();
|
client.sync(undefined, isBelt);
|
||||||
client.rotate(settings);
|
client.rotate(settings);
|
||||||
|
|
||||||
function sliceNext() {
|
function sliceNext() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue