Blender Git Commit Log

Git Commits -> Revision 5a94ab9

March 24, 2021, 12:25 (GMT)
Allow getting asset library and active asset handle via context

`CTX_wm_asset_library()` returns the active asset library from the workspace,
or the the Asset Browser one while inside that. The active asset handle is set
by the Asset Browser and the asset view UI template so that operators executed
via the template can access it.

Commit Details:

Full Hash: 5a94ab9ac270e1dd97ad6772fdb82859cea6cce2
Parent Commit: fd6015f
Lines Changed: +83, -24

10 Modified Paths:

/source/blender/blenkernel/BKE_context.h (+2, -0) (Diff)
/source/blender/blenkernel/intern/context.c (+5, -0) (Diff)
/source/blender/editors/asset/asset_list.cc (+3, -3) (Diff)
/source/blender/editors/include/ED_asset.h (+1, -2) (Diff)
/source/blender/editors/interface/interface_templates.c (+4, -0) (Diff)
/source/blender/editors/interface/interface_template_asset_view.cc (+13, -18) (Diff)
/source/blender/editors/screen/screen_context.c (+11, -0) (Diff)
/source/blender/editors/space_file/space_file.c (+35, -1) (Diff)
/source/blender/makesrna/intern/rna_asset.c (+8, -0) (Diff)
/source/blender/makesrna/RNA_access.h (+1, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021