Fixed type incorrectness constructing when constructing TSoftObjectPtr<UBlueprint> with a UObject*.

[CL 35016160 by steve robb in ue5-main branch]
This commit is contained in:
steve robb
2024-07-23 08:23:02 -04:00
parent 654e279bc0
commit ed42f35580

View File

@@ -563,7 +563,7 @@ struct FLevelInstanceMenuUtils
;
if (APackedLevelActor* PackedLevelActor = Cast<APackedLevelActor>(ContextLevelInstance))
{
if (TSoftObjectPtr<UBlueprint> BlueprintAsset = PackedLevelActor->GetClass()->ClassGeneratedBy.Get())
if (TSoftObjectPtr<UBlueprint> BlueprintAsset = Cast<UBlueprint>(PackedLevelActor->GetClass()->ClassGeneratedBy.Get()))
{
FToolUIAction UIAction;
UIAction.ExecuteAction.BindLambda([ContextLevelInstance, BlueprintAsset](const FToolMenuContext& MenuContext)