Blender Git Commit Log

Git Commits -> Revision e850c2b

Revision e850c2b by Julian Eisel (master)
July 21, 2021, 17:35 (GMT)
Cleanup: Centralize/unify asset library reference from/to enum code

This was an open TODO, I wanted to have code for translating asset
library references from and to enum values in a central place, and
access that in the same way from both the Asset Browser and the
Workspace RNA code.

* Adds own file for the related functions.
* Adds doxygen comments.
* Updates RNA callbacks to properly use these functions.
* Let these functions call each other, avoid duplicating logic.

Commit Details:

Full Hash: e850c2b06d18e4292110d3fe9cdf5ebc7c281daa
Parent Commit: 10e28bd
Lines Changed: +172, -215

1 Added Path:

/source/blender/editors/asset/intern/asset_library_reference_enum.cc (+156, -0) (View)

7 Modified Paths:

/source/blender/editors/asset/asset_edit.cc (+0, -53) (Diff)
/source/blender/editors/asset/CMakeLists.txt (+1, -0) (Diff)
/source/blender/editors/include/ED_asset.h (+1, -0) (Diff)
/source/blender/makesrna/intern/rna_asset.c (+4, -57) (Diff)
/source/blender/makesrna/intern/rna_internal.h (+0, -2) (Diff)
/source/blender/makesrna/intern/rna_space.c (+6, -101) (Diff)
/source/blender/makesrna/intern/rna_workspace.c (+4, -2) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021