Commit: 730de2e7fd33cf6d529aab6846d0a0d509806627
Author: Julian Eisel
Date:   Tue Oct 26 18:50:19 2021 +0200
Branches: master
https://developer.blender.org/rB730de2e7fd33cf6d529aab6846d0a0d509806627

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.

===================================================================

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 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;
 }

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to