Skip to content

Commit

Permalink
removed High Detail layout since it doesn't apply to UE5 level editor…
Browse files Browse the repository at this point in the history
… toolbar
  • Loading branch information
MothDoctor committed Aug 5, 2021
1 parent 64a22ce commit cefa156
Showing 1 changed file with 3 additions and 28 deletions.
31 changes: 3 additions & 28 deletions Source/FlowEditor/Private/LevelEditor/SLevelEditorFlow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
#include "FlowWorldSettings.h"

#include "Editor.h"
#include "Framework/MultiBox/MultiBoxDefs.h"
#include "PropertyCustomizationHelpers.h"
#include "SLevelOfDetailBranchNode.h"

#define LOCTEXT_NAMESPACE "SLevelEditorFlow"

Expand All @@ -33,7 +31,9 @@ void SLevelEditorFlow::CreateFlowWidget()
FlowPath = FName();
}

const TSharedRef<SWidget> FlowWidget = SNew(SHorizontalBox)
ChildSlot
[
SNew(SHorizontalBox)
+ SHorizontalBox::Slot()
.AutoWidth()
[
Expand All @@ -42,31 +42,6 @@ void SLevelEditorFlow::CreateFlowWidget()
.DisplayThumbnail(false)
.OnObjectChanged(this, &SLevelEditorFlow::OnFlowChanged)
.ObjectPath(this, &SLevelEditorFlow::GetFlowPath)
];

ChildSlot
[
SNew(SLevelOfDetailBranchNode)
.UseLowDetailSlot(FMultiBoxSettings::UseSmallToolBarIcons)
.LowDetail()
[
SNew(SHorizontalBox)
+ SHorizontalBox::Slot()
.AutoWidth()
[
FlowWidget
]
]
.HighDetail()
[
SNew(SVerticalBox)
+ SVerticalBox::Slot()
.AutoHeight()
.VAlign(VAlign_Top)
.Padding(5.0f)
[
FlowWidget
]
]
];
}
Expand Down

0 comments on commit cefa156

Please sign in to comment.