Blender Git Loki

Git Commits -> Revision f3002a8

Revision f3002a8 by Julian Eisel (asset-browser)
December 2, 2020, 19:27 (GMT)
Asset Browser: Support dragging assets and appending on drop

Idea is simple: When dragging an asset, store the source file-path and
data-block name and when dropping, append the data-block. It uses existing drop
operators, but the function to get the dropped ID is replaced with one that
returns the local ID, or, in case of an external asset, appends the ID first.

Note that I expect this to be a short-lived change. A refactor like D4071 is
needed to make the drag & drop system more future proof for assets and other
use cases.

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

Commit Details:

Full Hash: f3002a863ac7ae0efc96924974bf6739d5db838e
Parent Commit: 0e3ad1c
Lines Changed: +181, -58

11 Modified Paths:

/source/blender/editors/include/UI_interface.h (+7, -0) (Diff)
/source/blender/editors/interface/interface.c (+31, -6) (Diff)
/source/blender/editors/interface/interface_handlers.c (+4, -1) (Diff)
/source/blender/editors/space_console/space_console.c (+2, -2) (Diff)
/source/blender/editors/space_node/space_node.c (+4, -4) (Diff)
/source/blender/editors/space_outliner/outliner_dragdrop.c (+9, -9) (Diff)
/source/blender/editors/space_text/space_text.c (+1, -1) (Diff)
/source/blender/editors/space_view3d/space_view3d.c (+18, -8) (Diff)
/source/blender/windowmanager/intern/wm_dragdrop.c (+84, -18) (Diff)
/source/blender/windowmanager/WM_api.h (+7, -3) (Diff)
/source/blender/windowmanager/WM_types.h (+14, -6) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021