Blender Git Loki
Git Commits -> Revision 2b6f207
Revision 2b6f207 by Julian Eisel (master) October 4, 2021, 15:03 (GMT) |
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. |
Commit Details:
Full Hash: 2b6f2072f1eecd43080821bb7b55f5313f890ddb
Parent Commit: 4fd7ce3
Lines Changed: +33, -11