You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user