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:
Vincent Gauthier
2019-03-05 15:12:32 -05:00
parent 8345d86e90
commit 6987487c9b

View File

@@ -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);
}