Fix to drag and drop of widgets not working in the Designer view

#rb dave.belanger
#jira UE-78868

[CL 8038957 by Vincent Gauthier in Dev-Editor branch]
This commit is contained in:
Vincent Gauthier
2019-08-14 13:11:25 -04:00
parent e798d309a6
commit b3a5d8caa3

View File

@@ -1027,6 +1027,10 @@ void FWidgetBlueprintEditor::UpdatePreview(UBlueprint* InBlueprint, bool bInForc
// Update the widget tree directly to match the blueprint tree. That way the preview can update
// without needing to do a full recompile.
PreviewUserWidget->DuplicateAndInitializeFromWidgetTree(LatestWidgetTree);
// Establish the widget as being in design time before initializing (so that IsDesignTime is reliable within Initialize)
// We have to call it to make sure that all the WidgetTree had the DesignerFlags set correctly
PreviewUserWidget->SetDesignerFlags(GetCurrentDesignerFlags());
}
// Store a reference to the preview actor.