Blender Git Loki

Git Commits -> Revision aae5f15

Revision aae5f15 by Julian Eisel (master)
October 27, 2021, 12:56 (GMT)
Asset Browser: Support dragging catalogs to move them in the hierarchy

Uses the additions to the UI tree-view API from the previous commit to
enable drag & drop of asset catalogs. The catalogs will be moved in the
tree including children.
A remaining issue is that a catalog with children will always be
collapsed when dropping. I need to find a way to fix that in the
tree-view API.

There are a few improvements I can think of for the tree-item drag &
drop support, but time for these is too short. These can be done as
normal cleanups at some point.

Commit Details:

Full Hash: aae5f15238f73fcac762a1690e052b86fad23be1
Parent Commit: 1832e11
Lines Changed: +161, -22

6 Modified Paths:

/source/blender/editors/asset/ED_asset_catalog.hh (+3, -0) (Diff)
/source/blender/editors/asset/intern/asset_catalog.cc (+27, -0) (Diff)
/source/blender/editors/space_file/asset_catalog_tree_view.cc (+113, -22) (Diff)
/source/blender/windowmanager/intern/wm_dragdrop.c (+10, -0) (Diff)
/source/blender/windowmanager/WM_api.h (+2, -0) (Diff)
/source/blender/windowmanager/WM_types.h (+6, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021