Fixed actor details not showing the properties of the root componenent if selected.

Updated the logic in SActorDetails::RefreshSubobjectTreeElements to match the logic in  SActorDetails::OnSubobjectEditorTreeViewSelectionChanged when deciding whether a component or actor is selected
[FYI] jamie.dale
#jira none
#rb trivial
#preflight 60c2bbb1b1a4a3000131e17a

#ROBOMERGE-SOURCE: CL 16635419 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v831-16623017)

[CL 16635452 by ben hoffman in ue5-release-engine-test branch]
This commit is contained in:
ben hoffman
2021-06-10 22:32:28 -04:00
parent 6f18c928f9
commit 6f0cd4f571

View File

@@ -353,7 +353,7 @@ void SActorDetails::RefreshSubobjectTreeElements(TArrayView<const FSubobjectEdit
{
if(const FSubobjectData* Data = SelectedNode->GetDataSource())
{
if(Data->IsDefaultSceneRoot())
if(Data->IsRootActor())
{
// If the actor node is selected then we ignore the component selection
Components.Reset();