Skip to content

Commit

Permalink
#6003: Ensure that the def is parsed before evaluating the visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
codereader committed Jul 22, 2022
1 parent 3439ef3 commit f9f8f6b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions radiantcore/eclass/EntityClass.cpp
Expand Up @@ -47,6 +47,8 @@ vfs::Visibility EntityClass::determineVisibilityFromValues()

vfs::Visibility EntityClass::getVisibility()
{
ensureParsed();

// File visibility overrides the setting in the entity key/value pairs
return getBlockSyntax().fileInfo.visibility == vfs::Visibility::HIDDEN ?
vfs::Visibility::HIDDEN : _visibility.get();
Expand Down

0 comments on commit f9f8f6b

Please sign in to comment.