diff options
author | Julian Eisel <julian@blender.org> | 2021-10-04 17:17:59 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2021-10-04 18:03:12 +0300 |
commit | 2b6f2072f1eecd43080821bb7b55f5313f890ddb (patch) | |
tree | 54ec409e85c4322e5968a7cf3be457c29af897d0 /source/blender/editors/gpencil/gpencil_paint.c | |
parent | 4fd7ce321d7352570a5cbb08d66b1c635d234689 (diff) |
UI Tree-View API: Enforce active item to be un-collapsed
Makes sure that the active item of a tree never has collapsed parent
items, which can be confusing if it happens. E.g. for the asset catalogs
UI, the active catalog decides which assets are visible. Having it
hidden while being the main factor deciding which assets are visible is
quite confusing.
I think it makes sense to have this at the UI Tree-View level, rather
than doing it manually in the asset catalog code for example. Seems like
something you'd commonly want. We can make it optional in the API if
needed.
Renamed the `set_active()` function to make clear that it is more than a
mere setter.
Diffstat (limited to 'source/blender/editors/gpencil/gpencil_paint.c')
0 files changed, 0 insertions, 0 deletions