diff options
author | Julian Eisel <julian@blender.org> | 2021-10-04 16:27:26 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2021-10-04 16:29:39 +0300 |
commit | b536605e78eec10ad03c0eccd6cfd6b36b9216cf (patch) | |
tree | 67da93108affa34ae3cee5de780ef571735626ea /source | |
parent | 48822086331c1913a4980a87ee82f14904068213 (diff) |
Cleanup: Use static function for asset catalog tree-view helper
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/space_file/asset_catalog_tree_view.cc | 6 |
1 files changed, 3 insertions, 3 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 35107340cdb..629e06e5e71 100644 --- a/source/blender/editors/space_file/asset_catalog_tree_view.cc +++ b/source/blender/editors/space_file/asset_catalog_tree_view.cc @@ -84,12 +84,12 @@ class AssetCatalogTreeViewItem : public ui::BasicTreeViewItem { public: AssetCatalogTreeViewItem(AssetCatalogTreeItem *catalog_item); + static bool has_droppable_item(const wmDrag &drag); + void on_activate() override; void build_row(uiLayout &row) override; - bool has_droppable_item(const wmDrag &drag) const; - bool can_drop(const wmDrag &drag) const override; std::string drop_tooltip(const bContext &C, const wmDrag &drag, @@ -225,7 +225,7 @@ void AssetCatalogTreeViewItem::build_row(uiLayout &row) } } -bool AssetCatalogTreeViewItem::has_droppable_item(const wmDrag &drag) const +bool AssetCatalogTreeViewItem::has_droppable_item(const wmDrag &drag) { const ListBase *asset_drags = WM_drag_asset_list_get(&drag); |