mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Disabled custom attributes when boxed
This commit is contained in:
parent
67dadf34e5
commit
bb59aa3162
1 changed files with 36 additions and 33 deletions
|
@ -2096,6 +2096,8 @@ bool BfModule::DoPopulateType(BfType* resolvedTypeRef, BfPopulateType populateTy
|
|||
typeInstance->mInstSize = std::max(0, typeInstance->mInstSize);
|
||||
typeInstance->mInstAlign = std::max(0, typeInstance->mInstAlign);
|
||||
|
||||
if (!typeInstance->IsBoxed())
|
||||
{
|
||||
if ((typeInstance->mCustomAttributes == NULL) && (typeDef->mTypeDeclaration != NULL) && (typeDef->mTypeDeclaration->mAttributes != NULL))
|
||||
{
|
||||
BfAttributeTargets attrTarget;
|
||||
|
@ -2134,6 +2136,7 @@ bool BfModule::DoPopulateType(BfType* resolvedTypeRef, BfPopulateType populateTy
|
|||
typeInstance->mCustomAttributes = GetCustomAttributes(typeDef->mTypeDeclaration->mAttributes, attrTarget);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (typeInstance->mTypeOptionsIdx == -2)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue