Merge branch 'eriese-progressive-parts' into eriese-cut-v3
This commit is contained in:
commit
650a07b02c
19 changed files with 189 additions and 188 deletions
|
@ -500,13 +500,13 @@ Pattern.prototype.__init = function () {
|
|||
* @return {bool} hidden - true if the part is hidden, or false if not
|
||||
*/
|
||||
Pattern.prototype.__isPartHidden = function (partName) {
|
||||
const partHidden = this.parts?.[this.activeSet]?.[partName]?.hidden || false
|
||||
if (Array.isArray(this.settings[this.activeSet || 0].only)) {
|
||||
if (this.settings[this.activeSet || 0].only.includes(partName)) return false
|
||||
if (this.settings[this.activeSet || 0].only.includes(partName)) return partHidden
|
||||
}
|
||||
if (this.config.partHide?.[partName]) return true
|
||||
if (this.parts?.[this.activeSet]?.[partName]?.hidden) return true
|
||||
|
||||
return false
|
||||
return partHidden
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue