Skip to content

Commit

Permalink
Fix array config properties not being populated in struct
Browse files Browse the repository at this point in the history
  • Loading branch information
mircearoata committed Aug 16, 2023
1 parent 2e700e1 commit 56da6f9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,9 @@ struct SML_API FReflectedObject {
FORCEINLINE T* FindPropertyByName(FName PropertyName, const bool bCheckWriteable) const {
FProperty* Property = State.IsValid() ? State->FindPropertyByName(PropertyName) : NULL;
if (T* CastedProperty = CastField<T>(Property)) {
if (CastedProperty->HasAnyPropertyFlags(CPF_BlueprintVisible)) {
if (CastedProperty->GetOwnerProperty()->HasAnyPropertyFlags(CPF_BlueprintVisible)) {
if (bCheckWriteable) {
if (!CastedProperty->HasAnyPropertyFlags(CPF_BlueprintReadOnly)) {
if (!CastedProperty->GetOwnerProperty()->HasAnyPropertyFlags(CPF_BlueprintReadOnly)) {
return CastedProperty;
}
} else {
Expand Down

0 comments on commit 56da6f9

Please sign in to comment.