Blender Git Loki

Git Commits -> Revision c25e031

Revision c25e031 by Julian Eisel (master)
December 15, 2020, 16:03 (GMT)
Asset System: "Mark Asset" & "Clear Asset" operators and UI integration

This makes it possible to turn data-blocks into assets and back into normal
data-blocks. A core design decision made for the asset system is that not every
data-block should be an asset, because not every data-block is made for reuse.
Users have to explicitly mark data-blocks as assets.

Exposes "Mark Asset" and "Clear Asset" in Outliner context menus (currently ID
Data submenu) and button context menus. We are still not too happy with the
names, they may change.

This uses the new context members to pass data-blocks to operators, added in
af008f553293 and 0c1d4769235c.

Part of the first Asset Browser milestone. Check the #asset_browser_milestone_1
project milestone on developer.blender.org.

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

Reviewed by: Brecht Van Lommel

Commit Details:

Full Hash: c25e0310497f5228bd04992d6bcd84481d0b0c5b
Parent Commit: b71eb3a
Lines Changed: +453, -1

4 Added Paths:

/source/blender/editors/asset/asset_edit.c (+69, -0) (View)
/source/blender/editors/asset/asset_ops.c (+238, -0) (View)
/source/blender/editors/asset/CMakeLists.txt (+39, -0) (View)
/source/blender/editors/include/ED_asset.h (+39, -0) (View)

14 Modified Paths:

/doc/doxygen/doxygen.source.h (+4, -0) (Diff)
/source/blender/blenkernel/BKE_asset.h (+3, -0) (Diff)
/source/blender/blenkernel/BKE_icons.h (+2, -0) (Diff)
/source/blender/blenkernel/BKE_lib_id.h (+2, -0) (Diff)
/source/blender/blenkernel/intern/asset.c (+8, -0) (Diff)
/source/blender/blenkernel/intern/icons.c (+7, -1) (Diff)
/source/blender/blenkernel/intern/lib_id.c (+6, -0) (Diff)
/source/blender/editors/CMakeLists.txt (+1, -0) (Diff)
/source/blender/editors/interface/interface_context_menu.c (+17, -0) (Diff)
/source/blender/editors/space_api/spacetypes.c (+2, -0) (Diff)
/source/blender/editors/space_outliner/outliner_tools.c (+12, -0) (Diff)
/source/blender/editors/util/CMakeLists.txt (+1, -0) (Diff)
/source/blender/makesrna/intern/CMakeLists.txt (+1, -0) (Diff)
/source/blender/windowmanager/WM_types.h (+2, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021