Reproduction steps:
1. Open project “TestSoftDeleteWarning”
2. Open “SampleScene” scene
3. Right-click in the Project window
4. Select Create->Test->Test asset to create an instance of the SciptableObject class “TestScript”
5. In the Inspector window, click the "Create next" button to create a child for the asset, which is made from its parent
6. Right-click the ScriptableObject's child that has just been created and try to delete it
Expected result: The SciptableObject's child is deleted
Actual result: The Delete button can not be pressed
Reproducible with: 2020.3.42f1, 2021.3.14f1, 2022.1.23f1, 2022.2.0f1, 2023.1.0a20
Reproducible on: Catalina 10.15.7 (Intel), Windows 10, Windows 11
Notes:
- User reported a warning 'The operation "SoftDelete" cannot be executed because the selection is a root folder.' when trying to delete the ScriptableObjects child but it could not be reproduced