diff options
author | Julian Eisel <julian@blender.org> | 2021-10-26 19:50:19 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2021-10-26 19:55:27 +0300 |
commit | 730de2e7fd33cf6d529aab6846d0a0d509806627 (patch) | |
tree | 0ed167d5afbbc8a18a70fe6af679c59968ceb9dd /source/blender/editors/space_file | |
parent | 11e8a2ec5fc95524a59a7422d2715ef1116dbef4 (diff) |
Asset Browser: Show disabled-hint when dragging external assets over catalog
There's now a message displayed in red next to the cursor explaining that only
assets from the current file can be moved between catalogs.
The previous commit prepared this.
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, 2 insertions, 0 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 a7762008c47..354ee742598 100644 --- a/source/blender/editors/space_file/asset_catalog_tree_view.cc +++ b/source/blender/editors/space_file/asset_catalog_tree_view.cc @@ -389,6 +389,8 @@ bool AssetCatalogDropController::has_droppable_item(const wmDrag &drag, return true; } } + + *r_disabled_hint = "Only assets from this current file can be moved between catalogs"; return false; } |