diff --git a/IDEHelper/Compiler/BfDefBuilder.cpp b/IDEHelper/Compiler/BfDefBuilder.cpp index aa36c9f4..7dc7b13b 100644 --- a/IDEHelper/Compiler/BfDefBuilder.cpp +++ b/IDEHelper/Compiler/BfDefBuilder.cpp @@ -1058,9 +1058,7 @@ void BfDefBuilder::Visit(BfFieldDeclaration* fieldDeclaration) if (fieldDeclaration->mNameNode != NULL) fieldDef->mName = fieldDeclaration->mNameNode->ToString(); fieldDef->mProtection = GetProtection(fieldDeclaration->mProtectionSpecifier); - if (mCurTypeDef->mIsPartial) - fieldDef->mProtection = BfProtection_Public; - else if (isEnumEntryDecl) + if (isEnumEntryDecl) fieldDef->mProtection = BfProtection_Public; fieldDef->mIsReadOnly = fieldDeclaration->mReadOnlySpecifier != NULL; fieldDef->mIsInline = (fieldDeclaration->mReadOnlySpecifier != NULL) && (fieldDeclaration->mReadOnlySpecifier->GetToken() == BfToken_Inline);