Skip to content

Commit

Permalink
Fixed minor bug from develop branch
Browse files Browse the repository at this point in the history
  • Loading branch information
bsekachev committed Oct 13, 2023
1 parent 62929db commit 631c78d
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions cvat-canvas/src/typescript/masksHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -547,18 +547,19 @@ export class MasksHandlerImpl implements MasksHandler {
}));

this.isInsertion = true;
} else if (!this.isDrawing) {
// initialize drawing pipeline if not started
this.isDrawing = true;
this.redraw = drawData.redraw || null;
} else {
this.updateBrushTools(drawData.brushTool);
if (!this.isDrawing) {
// initialize drawing pipeline if not started
this.isDrawing = true;
this.redraw = drawData.redraw || null;
}
}

this.canvas.getElement().parentElement.style.display = 'block';
this.startTimestamp = Date.now();
}

this.updateBrushTools(drawData.brushTool);

if (!drawData.enabled && this.isDrawing) {
try {
if (this.drawnObjects.length) {
Expand Down

0 comments on commit 631c78d

Please sign in to comment.