1
0
Fork 0

handle cases with 'only' in cutting layout

This commit is contained in:
Enoch Riese 2023-03-12 11:12:11 -05:00
parent b146f6271f
commit 47953e8e27
4 changed files with 18 additions and 8 deletions

View file

@ -94,7 +94,7 @@ const doScanForBlanks = (stacks, layout, x, y, w, h) => {
return hasContent
}
function addToOnly(pattern, partName) {
export function addToOnly(pattern, partName) {
const only = pattern.settings[0].only
if (only && !only.includes(partName)) {
pattern.settings[0].only = [].concat(only, partName)