Blender Git Commit Log

Git Commits -> Revision 8750f35

April 2, 2021, 17:11 (GMT)
Expose more asset info and utilities in the Python API

Needed so the pose library add-on can keep its operators work outside of
the Asset Browser context, namely with the asset view template.

An issue here is that we can't expose an asset handle from the Asset
Browser, because there is not permanently saved one whose pointer we can
pass around. This is planned to be addressed, but for now Python will
have to use the file wrapped by the asset-handle directly, via
`context.asset_file_handle`.

Commit Details:

Full Hash: 8750f355b32bb50c8b71b87a3153071b9ef4cbe7
Parent Commit: 2e0d2c2
Lines Changed: +143, -9

5 Modified Paths:

/source/blender/editors/asset/asset_edit.cc (+22, -8) (Diff)
/source/blender/editors/include/ED_asset.h (+6, -0) (Diff)
/source/blender/makesrna/intern/rna_asset.c (+56, -1) (Diff)
/source/blender/makesrna/intern/rna_context.c (+27, -0) (Diff)
/source/blender/makesrna/intern/rna_space.c (+32, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021