Blender Git Loki

Git Commits -> Revision dbe3981

Revision dbe3981 by Julian Eisel (master)
October 5, 2021, 14:10 (GMT)
Cleanup: Better way to pass activate callbacks to Tree-View items

The `ui::BasicTreeViewItem` took a function-like object to execute on
item activation via the constructor. This was mainly intended to be used
with lambdas. However, it's confusing to just have this lambda there,
with no indication of what it's for (activation).
Instead, assign the function-like object via an explicit `on_activate()`
function.

Commit Details:

Full Hash: dbe3981b0a805c1a40f42f57dc7ccc3d28270fda
Parent Commit: 9a0850c
Lines Changed: +21, -12

3 Modified Paths:

/source/blender/editors/include/UI_tree_view.hh (+2, -1) (Diff)
/source/blender/editors/interface/tree_view.cc (+6, -2) (Diff)
/source/blender/editors/space_file/asset_catalog_tree_view.cc (+13, -9) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021