eliminate specialized rotate for belt
This commit is contained in:
parent
64a388cc05
commit
fb39c48011
2 changed files with 5 additions and 9 deletions
|
|
@ -372,7 +372,7 @@ kiri.worker = {
|
||||||
for (let w of group) {
|
for (let w of group) {
|
||||||
w.moveMesh(0, miny, 0);
|
w.moveMesh(0, miny, 0);
|
||||||
}
|
}
|
||||||
widget.rotateRaw(rotation,0,0,true);
|
widget.rotate(rotation, 0, 0, true, false);
|
||||||
let minr = gmin(group);
|
let minr = gmin(group);
|
||||||
widget.belt = {
|
widget.belt = {
|
||||||
angle: 45,
|
angle: 45,
|
||||||
|
|
|
||||||
|
|
@ -566,17 +566,13 @@ class Widget {
|
||||||
this.setModified();
|
this.setModified();
|
||||||
}
|
}
|
||||||
|
|
||||||
rotate(x, y, z, temp) {
|
rotate(x, y, z, temp, center = true) {
|
||||||
this.group.forEach(w => {
|
|
||||||
w._rotate(x, y, z, temp);
|
|
||||||
});
|
|
||||||
this.center(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
rotateRaw(x, y, z, temp) {
|
|
||||||
this.group.forEach(w => {
|
this.group.forEach(w => {
|
||||||
w._rotate(x, y, z, temp);
|
w._rotate(x, y, z, temp);
|
||||||
});
|
});
|
||||||
|
if (center) {
|
||||||
|
this.center(false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
_rotate(x, y, z, temp) {
|
_rotate(x, y, z, temp) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue