You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Fix to drag and drop causing widgets to be incorectly set to Transient after a drop.
#jira UE-71037 #rb lauren.ridge [CL 5298015 by Vincent Gauthier in 4.22 branch]
This commit is contained in:
@@ -1015,12 +1015,6 @@ void FNamedSlotModel::DoDrop(UWidget* NamedSlotHostWidget, UWidget* DroppingWidg
|
||||
TSet<FWidgetReference> SelectedTemplates;
|
||||
SelectedTemplates.Add(BlueprintEditor.Pin()->GetReferenceFromTemplate(DroppingWidget));
|
||||
|
||||
// Move the remaining widgets into the transient package. Otherwise, they will remain outered to the WidgetTree and end up as properties in the BP class layout as a result.
|
||||
if (DroppingWidget->GetOutermost() != GetTransientPackage())
|
||||
{
|
||||
FHierarchyModel::RemovePreviewWidget(Blueprint, DroppingWidget);
|
||||
}
|
||||
|
||||
BlueprintEditor.Pin()->SelectWidgets(SelectedTemplates, false);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user