handle cases with 'only' in cutting layout
This commit is contained in:
parent
b146f6271f
commit
47953e8e27
4 changed files with 18 additions and 8 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue