Blender Git Commit Log

Git Commits -> Revision c4dca65

Revision c4dca65 by Julian Eisel (master)
October 3, 2021, 21:58 (GMT)
Asset Browser: Support dragging assets into catalogs

With this it is possible to select any number of assets in the Asset
Browser and drag them into catalogs. The assets will be moved to that
catalog then. However, this will only work in the "Current File" asset
library, since that is the only library that allows changing assets,
which is what's done here.

While dragging assets over the tree row, a tooltip is shown explaining
what's going to happen.

In preparation to this, the new UI tree-view API was already extended
with custom drop support, see 4ee2d9df428d.

----

Changes here to the `wmDrag` code were needed to support dragging multiple
assets. Some of it is considered temporary because a) a proper #AssetHandle
design should replace some ugly parts of this patch and b) the multi-item
support in `wmDrag` isn't that great yet. The entire API will have to be
written anyway (see D4071).

Maniphest Tasks: T91573

Differential Revision: https://developer.blender.org/D12713

Reviewed by: Sybren St�vel

Commit Details:

Full Hash: c4dca6522812670ab9782e4f90553c5054109f3d
Parent Commit: 3b1a243
Lines Changed: +260, -27

14 Modified Paths:

/doc/python_api/sphinx_doc_gen.py (+1, -0) (Diff)
/source/blender/blenkernel/BKE_asset_catalog.hh (+5, -1) (Diff)
/source/blender/blenkernel/intern/asset_catalog.cc (+12, -4) (Diff)
/source/blender/editors/interface/interface.c (+1, -6) (Diff)
/source/blender/editors/interface/interface_handlers.c (+6, -0) (Diff)
/source/blender/editors/space_file/asset_catalog_tree_view.cc (+79, -4) (Diff)
/source/blender/editors/space_file/filelist.c (+1, -2) (Diff)
/source/blender/editors/space_file/filelist.h (+1, -0) (Diff)
/source/blender/editors/space_file/file_intern.h (+1, -0) (Diff)
/source/blender/editors/space_file/file_panels.c (+1, -1) (Diff)
/source/blender/editors/space_file/space_file.c (+19, -0) (Diff)
/source/blender/windowmanager/intern/wm_dragdrop.c (+91, -3) (Diff)
/source/blender/windowmanager/WM_api.h (+11, -0) (Diff)
/source/blender/windowmanager/WM_types.h (+31, -6) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021