[Bf-blender-cvs] [b536605e78e] master: Cleanup: Use static function for asset catalog tree-view helper
Julian Eisel
noreply at git.blender.org
Mon Oct 4 15:29:47 CEST 2021
Commit: b536605e78eec10ad03c0eccd6cfd6b36b9216cf
Author: Julian Eisel
Date: Mon Oct 4 15:27:26 2021 +0200
Branches: master
https://developer.blender.org/rBb536605e78eec10ad03c0eccd6cfd6b36b9216cf
Cleanup: Use static function for asset catalog tree-view helper
===================================================================
M source/blender/editors/space_file/asset_catalog_tree_view.cc
===================================================================
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);
More information about the Bf-blender-cvs
mailing list