Files
UnrealEngineUWP/Engine/Source/Editor/AddContentDialog/AddContentDialog.Build.cs
paul chipchase 4b1dc1ddba Fix rare crash when populating a new project with starter content.
#rb Per.Larsson
#jira UE-164800
#preflight 638620748b12eb83a79b7723
#lockdown mark.lintott

- When populating the starter content, IAssetTools::ImportAssets will load and return one of the packages containing an asset and FFeaturePackContentSource will attempt to save that asset. The load can kick off async compilation which can still be in progress when the save occurs and the save will cause the package to become detached from its file on disk.
- This introduces the classic thread safety issue between editor bulkdata and package detachment.
- For now we fix this by flushing async compilation before doing operations that we know can cause this problem.
- This fix can be removed once UE-140944 is done.

[CL 23325988 by paul chipchase in ue5-main branch]
2022-11-30 07:43:44 -05:00

38 lines
665 B
C#

// Copyright Epic Games, Inc. All Rights Reserved.
using UnrealBuildTool;
public class AddContentDialog : ModuleRules
{
public AddContentDialog(ReadOnlyTargetRules Target) : base(Target)
{
PrivateIncludePathModuleNames.AddRange(
new string[] {
"AssetTools",
"ContentBrowser"
}
);
PrivateDependencyModuleNames.AddRange(
new string[] {
"ApplicationCore",
"Core",
"CoreUObject",
"DesktopPlatform",
"DirectoryWatcher",
"EditorFramework",
"Engine",
"ImageWrapper",
"InputCore",
"Json",
"PakFile",
"Slate",
"SlateCore",
"ToolWidgets",
"UnrealEd",
"WidgetCarousel"
}
);
}
}