Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ class FSoftObjectPropertyDesc : public FPropertyDesc
{
public:
explicit FSoftObjectPropertyDesc(FProperty* InProperty)
: FPropertyDesc(InProperty)
: FPropertyDesc(InProperty), bFirstPropOfScriptStruct(GetPropertyOuter(Property)->IsA<UScriptStruct>() && Property->GetOffset_ForInternal() == 0)
{
}

Expand Down Expand Up @@ -463,7 +463,7 @@ class FSoftObjectPropertyDesc : public FPropertyDesc
}
else
{
UnLua::PushPointer(L, (void*)ValuePtr, "FSoftObjectPtr", false);
UnLua::PushPointer(L, (void*)ValuePtr, "FSoftObjectPtr", bFirstPropOfScriptStruct);
}
}
}
Expand Down Expand Up @@ -525,6 +525,9 @@ class FSoftObjectPropertyDesc : public FPropertyDesc
return true;
};
#endif

protected:
bool bFirstPropOfScriptStruct;
};

/**
Expand Down