Files
UnrealEngineUWP/Engine/Source/Editor/WorldBrowser/WorldBrowser.Build.cs
han chu e2f901b594 The problem:
When the level is locked, CanSelectElement evaluates to true, causing Unreal Engine to crash in the following two scenarios:
1. After locking the level, the user clicks on an ISM
2. After locking the level, the user drags the remaining gizmo on an ISM

The cause:
1. FSMInstanceElementLevelEditorSelectionCustomization::CanSelectElement evaluates to true because GEdSelectionLock seems always be false
2. DeselectAllActors in SetLocked does not recursively deselect the ISM components

The fix:
1. Determine whether the owner level is lockedin FSMInstanceElementLevelEditorSelectionCustomization::CanSelectElement
2. Use the typed element selection APIs to clear the current level's selection

#jira UE-181821
#rb

[CL 26000790 by han chu in ue5-main branch]
2023-06-14 20:05:51 -04:00

69 lines
1.7 KiB
C#

// Copyright Epic Games, Inc. All Rights Reserved.
using UnrealBuildTool;
public class WorldBrowser : ModuleRules
{
public WorldBrowser(ReadOnlyTargetRules Target) : base(Target)
{
PrivateIncludePathModuleNames.AddRange(
new string[] {
"AssetRegistry",
"AssetTools",
"MeshUtilities",
"MeshMergeUtilities",
}
);
PrivateDependencyModuleNames.AddRange(
new string[] {
"ApplicationCore",
"AppFramework",
"Core",
"CoreUObject",
"RenderCore",
"InputCore",
"Engine",
"Landscape",
"Slate",
"SlateCore",
"EditorWidgets",
"ToolWidgets",
"EditorFramework",
"UnrealEd",
"GraphEditor",
"LevelEditor",
"PropertyEditor",
"DesktopPlatform",
"MainFrame",
"SourceControl",
"SourceControlWindows",
"MeshDescription",
"StaticMeshDescription",
"NewLevelDialog",
"LandscapeEditor",
"FoliageEdit",
"ImageWrapper",
"Foliage",
"MaterialUtilities",
"RHI",
"Json",
"ToolMenus",
"TypedElementRuntime",
"TypedElementFramework",
}
);
DynamicallyLoadedModuleNames.AddRange(
new string[] {
"AssetRegistry",
"AssetTools",
"SceneOutliner",
"MeshUtilities",
"ContentBrowser",
"MeshMergeUtilities",
}
);
}
}