mirror of
https://github.com/scratchfoundation/scratch-paint.git
synced 2024-12-22 21:42:30 -05:00
Fix another issue caused by undo causing layers to be selected
This commit is contained in:
parent
7f4812ad55
commit
4fcb908ad5
1 changed files with 1 additions and 1 deletions
|
@ -151,7 +151,7 @@ const getSelectedLeafItems = function () {
|
|||
|
||||
for (let i = 0; i < allItems.length; i++) {
|
||||
const item = allItems[i];
|
||||
if (!isGroup(item) && item.data && !item.data.isSelectionBound) {
|
||||
if (!(item instanceof paper.Layer) && !isGroup(item) && item.data && !item.data.isSelectionBound) {
|
||||
items.push(item);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue