o3de / o3de

Open 3D Engine (O3DE) is an Apache 2.0-licensed multi-platform 3D engine that enables developers and content creators to build AAA games, cinema-quality 3D worlds, and high-fidelity simulations without any fees or commercial obligations.
https://o3de.org
Other
7.64k stars 2.18k forks source link

Prefab Focus Mode: Component Trees Can Not be Expanded and Collapsed #6341

Open LesaelR opened 2 years ago

LesaelR commented 2 years ago

Describe the bug Tree views are disabled on components of read-only entities.

Pre-requisites

  1. Procedural Prefabs are enabled in AutomatedTesting\user\Registry\editorpreferences.setreg:
{
    "Amazon": {
        "Preferences": {
            "EnablePrefabSystem": true,
            "EnablePrefabSystemWipFeatures": true
        }
    },
    "O3DE": {
        "Preferences": {
            "Prefabs": {
                "SaveAllPrefabs": "Ask every time",
                "UseProceduralPrefabs": true
            }
        }
    }
}

Steps to reproduce

  1. Launch the Editor and open a new or existing level.
  2. Instantiate any .procprefab into the Entity Outliner.
  3. Enter Focus Mode on the .procprefab, and select a read-only entity.
  4. In the Entity Inspector, expand the mesh component
  5. Attempt to interact with the Mesh Stats LoD tree within the mesh component

Expected behavior Tree views are not disabled on components of read-only entities.

Actual behavior Tree views are disabled on components of read-only entities.

Screenshots/Video image

Found in Branch development@a8a96d3e66853fdd

AMZN-daimini commented 2 years ago

On components cards, we actually had to implement a "fake disabled state" to allow the expander to still work on disabled components. Not sure if we can do something similar on the RPE though.

Also relates to this: https://github.com/o3de/o3de/issues/6346