Blender Git Loki
Git Commits -> Revision 557b3d2
Revision 557b3d2 by Julian Eisel (master) April 20, 2021, 20:36 (GMT) |
Assets: Add BPY function to mark and clear assets Adds `mark_asset()` and `clear_asset()` to ID data-blocks, e.g. `bpy.context.active_object.mark_asset()`. They essentially do the same as the mark and clear asset operators. Scripts are generally discouraged from using operators where possible, but we need to provide API functions to use instead. In this case it means scripts don't have to override context to pass an ID to the operator. |
Commit Details:
Full Hash: 557b3d2762a62af80b4ef0778e012d6eff2c6a47
Parent Commit: 847579b
Lines Changed: +30, -0
1 Modified Path:
/source/blender/makesrna/intern/rna_ID.c (+30, -0) (Diff)