theatre-js / theatre

Motion design editor for the web
https://www.theatrejs.com
Apache License 2.0
10.82k stars 337 forks source link

Outliner Hierarchy / Folder & Directory structure not respected #488

Open jo-chemla opened 3 weeks ago

jo-chemla commented 3 weeks ago

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:

See this issue for reference implementation highlighting the bug.

image