1
0
Fork 0

fix(core): Correctly handle hideAll in dependencies

fixes #2880
This commit is contained in:
Joost De Cock 2022-09-28 21:36:59 +02:00
parent fba25ed02b
commit 229b7e2e30

View file

@ -1246,7 +1246,7 @@ Pattern.prototype.__resolveParts = function (count = 0, distance = 0) {
if (part.hideAll) this.__mutated.partHide[part.name] = true
// Inject (from)
if (part.from) {
if (part.hideDependencies || this.__mutated.partHideAll[name]) {
if (part.hideDependencies || part.hideAll || this.__mutated.partHideAll[name]) {
// Don't mutate the part, keep this info in the pattern object
this.__mutated.partHide[part.from.name] = true
this.__mutated.partHideAll[part.from.name] = true