Expressions: propertyGroup reaches the kept layer, not a new one

This commit is contained in:
tylerjenningsw
2026-10-29 17:43:30 -04:00
parent 2bd86c6cd8
commit cca5447e09
+1 -1
View File
@@ -435,7 +435,7 @@ function __ancestor(c, l, path, countUp) {
if (typeof n !== 'number' || !(n >= 1) || !isFinite(n)) __err('propertyGroup(' + countUp + '): the count must be a number of 1 or more');
n = Math.floor(n);
var info = __h(__ANCESTOR, c, l, path, n);
if (info === 'layer') return new Layer(c, l);
if (info === 'layer') return __layer(c, l);
if (info === null) __err('propertyGroup(' + n + ') goes above the layer');
return __mkGroup(c, l, info);
}