Skip to content

Commit

Permalink
🐞 fix: Fix the bug of calculating the rotation angle incorrectly
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangechen committed Jan 24, 2024
1 parent fbd7f2a commit ba7539c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/chili/src/commands/modify/rotate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export class Rotate extends TransformedCommand {
return {
refPoint: this.stepDatas[0].point!,
dimension: Dimension.D1D2D3,
plane: this.stepDatas[0].view.workplane.translateTo(this.stepDatas[0].point!),
preview: this.linePreview,
validators: [(p) => p.distanceTo(this.stepDatas[0].point!) > 1e-6],
};
Expand All @@ -46,7 +47,7 @@ export class Rotate extends TransformedCommand {
return {
dimension: Dimension.D1D2,
preview: this.rotatePreview,
plane: this.stepDatas[0].view.workplane,
plane: this.stepDatas[0].view.workplane.translateTo(this.stepDatas[0].point!),
validators: [
(p) => {
return (
Expand Down

0 comments on commit ba7539c

Please sign in to comment.