Skip to content

Commit e6117bb

Browse files
committed
Clear selection before enabling selection layer.
Fixes #75.
1 parent 3436987 commit e6117bb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/passes/OutlinePass.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,13 +364,14 @@ export class OutlinePass extends Pass {
364364

365365
let i, l;
366366

367+
this.clearSelection();
368+
367369
for(i = 0, l = selection.length; i < l; ++i) {
368370

369371
selection[i].layers.enable(selectionLayer);
370372

371373
}
372374

373-
this.clearSelection();
374375
this.selection = selection;
375376
this.needsSwap = selection.length > 0;
376377

0 commit comments

Comments
 (0)