Skip to content

Commit a43df43

Browse files
authored
flush test part 3
1 parent 7ee4aa4 commit a43df43

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/helper/blob-tools/broad-brush-helper.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ class BroadBrushHelper {
4444
this.lastVec = null;
4545
const size = options.brushSize / 2;
4646
if (this.isSquareBrush) {
47+
this.pendingSquares = [];
4748
tool.minDistance = Math.max(1, (size / paper.view.zoom) / 2);
4849
tool.maxDistance = options.brushSize;
4950
} else {
@@ -99,6 +100,7 @@ class BroadBrushHelper {
99100
if (this.pendingSquares.length >= this.mergeBatchSize) {
100101
this.flushPending();
101102
}
103+
this.lastPoint = point;
102104
}
103105

104106
flushPending() {

0 commit comments

Comments
 (0)