eliminate specialized rotate for belt

This commit is contained in:
Stewart Allen 2022-11-01 23:53:22 -04:00
commit fb39c48011
2 changed files with 5 additions and 9 deletions

View file

@ -372,7 +372,7 @@ kiri.worker = {
for (let w of group) {
w.moveMesh(0, miny, 0);
}
widget.rotateRaw(rotation,0,0,true);
widget.rotate(rotation, 0, 0, true, false);
let minr = gmin(group);
widget.belt = {
angle: 45,

View file

@ -566,17 +566,13 @@ class Widget {
this.setModified();
}
rotate(x, y, z, temp) {
this.group.forEach(w => {
w._rotate(x, y, z, temp);
});
this.center(false);
}
rotateRaw(x, y, z, temp) {
rotate(x, y, z, temp, center = true) {
this.group.forEach(w => {
w._rotate(x, y, z, temp);
});
if (center) {
this.center(false);
}
}
_rotate(x, y, z, temp) {