diff options
author | Julian Eisel <julian@blender.org> | 2021-10-06 17:29:10 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2021-10-06 17:36:20 +0300 |
commit | 75fbf6f17e69ee9c6487173ae5957cfff5193d1f (patch) | |
tree | e27584eb4440d0280cd65a805c8a546966fb9d83 /source/blender/editors/space_file | |
parent | 536109b4ec336e86de5a7e22e51804584bca74f5 (diff) |
Asset Browser: Show catalog add & delete icons on mouse hover (only)
Now the icons to add or delete catalogs are only shown when mouse hovering a
catalog item in the tree. This is convenient for quick creation of catalogs,
and doesn't require activating a catalog to edit it first.
Determining if a tree item is hovered isn't trivial actually. The UI tree-view
code has to find the matching tree-row button in the previous layout to do so,
since the new layout isn't calculated yet.
Diffstat (limited to 'source/blender/editors/space_file')
-rw-r--r-- | source/blender/editors/space_file/asset_catalog_tree_view.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_file/asset_catalog_tree_view.cc b/source/blender/editors/space_file/asset_catalog_tree_view.cc index 552a0a7acd0..fac38e71220 100644 --- a/source/blender/editors/space_file/asset_catalog_tree_view.cc +++ b/source/blender/editors/space_file/asset_catalog_tree_view.cc @@ -219,7 +219,7 @@ void AssetCatalogTreeViewItem::build_row(uiLayout &row) { ui::BasicTreeViewItem::build_row(row); - if (!is_active()) { + if (!is_hovered()) { return; } |