Fix another issue caused by undo causing layers to be selected

This commit is contained in:
DD 2017-10-20 14:54:21 -04:00
parent 7f4812ad55
commit 4fcb908ad5

View file

@ -151,7 +151,7 @@ const getSelectedLeafItems = function () {
for (let i = 0; i < allItems.length; i++) { for (let i = 0; i < allItems.length; i++) {
const item = allItems[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); items.push(item);
} }
} }