Sequencer: Only allow dropping onto spacers from sequencer outilner drag and drop operations, ie. not actors from the outliner

#jira UE-192214
#rb andrew.rodham

[CL 27030696 by max chen in ue5-main branch]
This commit is contained in:
max chen
2023-08-11 11:55:32 -04:00
parent dbb5c46049
commit b64ec0a641

View File

@@ -4,6 +4,7 @@
#include "HAL/PlatformCrt.h"
#include "MVVM/ViewModelPtr.h"
#include "MVVM/ViewModels/OutlinerViewModelDragDropOp.h"
#include "MVVM/ViewModels/ViewModelIterators.h"
#include "Math/NumericLimits.h"
#include "Misc/Attribute.h"
@@ -75,6 +76,12 @@ void FOutlinerSpacer::SetCustomOrder(int32 InCustomOrder)
TOptional<EItemDropZone> FOutlinerSpacer::CanAcceptDrop(const FViewModelPtr& TargetModel, const FDragDropEvent& DragDropEvent, EItemDropZone InItemDropZone)
{
TSharedPtr<FOutlinerViewModelDragDropOp> DragDropOp = DragDropEvent.GetOperationAs<FOutlinerViewModelDragDropOp>();
if (!DragDropOp)
{
return TOptional<EItemDropZone>();
}
return EItemDropZone::AboveItem;
}