Description

Currently, double clicking on a thumbnail for a SoftObjectPtr to a UWorld will load that level in the level editor without checking if the current world is dirty or prompting to save. This can result in lost work. It looks like SPropertyEditorAsset::OnOpenAssetEditor needs to be updated to respect AssetTypeActions::GetValidAssetsForPreviewOrEdit, as this is where UWorld (via AssetTypeActions_World) checks the dirty state before the level is loaded.

Steps to Reproduce
  1. Create a TSoftObjectPtr<UWorld> UProperty and expose it
  2. Assign it in the editor
  3. Dirty the current level, then double click the property thumbnail. Note that the level loads without prompting the user to save the current level

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-136742 in the post.

1
Login to Vote

Fixed
ComponentUE - Editor
Affects Versions4.275.0
Target Fix5.0
Fix Commit18461157
Main Commit18461123
Release Commit18461157
CreatedDec 6, 2021
ResolvedDec 14, 2021
UpdatedJan 26, 2023