GP-0: Fix default visibility on children of VOID.

This commit is contained in:
Dan 2023-08-08 13:34:41 -04:00
parent 5888ac64e1
commit 1ed7768b9a
2 changed files with 33 additions and 1 deletions

View file

@ -907,7 +907,9 @@ public interface TargetObjectSchema {
return false;
}
AttributeSchema schema = getAttributeSchema(key);
if (schema == AttributeSchema.DEFAULT_ANY || schema == AttributeSchema.DEFAULT_OBJECT) {
if (schema == AttributeSchema.DEFAULT_ANY ||
schema == AttributeSchema.DEFAULT_OBJECT ||
schema == AttributeSchema.DEFAULT_VOID) {
// FIXME: Remove this hack once we stop depending on this prefix
return key.startsWith(TargetObject.PREFIX_INVISIBLE);
}