theatre-js/theatre

Outliner Hierarchy / Folder & Directory structure not respected

jo-chemla opened this issue · 0 comments

Defining a theatreKey to components within a <SheetProvider> is useful to name theatre objects that are editable. One can even use forward slashes / to define a directory/folder structure like Root/Group1/Object1.

Unfortunately, when an editable theatrejs object has a given theatreKey, say Parent, and that one or more other have another theatreKey that should place them under that object like Parent/Child1, Parent/Child2, then the Parent node within the Outliner is duplicated:

  • One is here for the Object itself, and clicking it let the user edit the object properties via the Property Editor.
  • and the other one is a folder only, clicking it does nothing, but clicking its children let the user edit each child properties.

See this issue for reference implementation highlighting the bug.

image