Skip to content

Commit

Permalink
only store Object rotated state in updated array
Browse files Browse the repository at this point in the history
  • Loading branch information
KrishavRajSingh committed Jul 6, 2024
1 parent c9f1cff commit e7714c4
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions cvat-core/src/annotations-objects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,7 @@ export class Shape extends Drawn {
this.saveRotation(rotation, frame);
}

if (updated.points && fittedPoints.length) {
if (updated.points && fittedPoints.length && !updated.rotation) {
this.savePoints(fittedPoints, frame);
}

Expand Down Expand Up @@ -2349,12 +2349,16 @@ export class MaskShape extends Shape {
redoWithUnderlyingPixels();
redo();
},
[this.clientID, ...clientIDs], frame,
[this.clientID, ...clientIDs],
frame,
);
} else {
this.history.do(
HistoryActions.CHANGED_POINTS,
undo, redo, [this.clientID], frame,
undo,
redo,
[this.clientID],
frame,
);
}
}
Expand Down

0 comments on commit e7714c4

Please sign in to comment.