Blender Git Commit Log

Git Commits -> Revision c202d38

Revision c202d38 by Hans Goudey (master)
July 14, 2021, 14:51 (GMT)
Python API: Add functions to ensure and clear IDProperties

This adds id_properties_clear() and id_properties_ensure() functions
to RNA structs. This is meant as an initial change based on discussion
in review of D9697. However, they may be useful in other situations.

The change requires refactoring the internal idproperties callback to
return a pointer to the IDProperty pointer, which actually turns out
to be quite a nice cleanup.

An id_properties attribute could be added in the future potentially.

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

Commit Details:

Full Hash: c202d3865904903a73a18822613f625a3bee344b
Parent Commit: 37a5ff4
Lines Changed: +128, -150

19 Modified Paths:

/source/blender/makesrna/intern/rna_access.c (+21, -4) (Diff)
/source/blender/makesrna/intern/rna_armature.c (+4, -16) (Diff)
/source/blender/makesrna/intern/rna_asset.c (+2, -8) (Diff)
/source/blender/makesrna/intern/rna_ID.c (+7, -6) (Diff)
/source/blender/makesrna/intern/rna_internal.h (+2, -2) (Diff)
/source/blender/makesrna/intern/rna_internal_types.h (+2, -2) (Diff)
/source/blender/makesrna/intern/rna_layer.c (+2, -8) (Diff)
/source/blender/makesrna/intern/rna_modifier.c (+2, -6) (Diff)
/source/blender/makesrna/intern/rna_nodetree.c (+7, -25) (Diff)
/source/blender/makesrna/intern/rna_pose.c (+2, -8) (Diff)
/source/blender/makesrna/intern/rna_sequencer.c (+2, -8) (Diff)
/source/blender/makesrna/intern/rna_space.c (+2, -8) (Diff)
/source/blender/makesrna/intern/rna_timeline.c (+2, -8) (Diff)
/source/blender/makesrna/intern/rna_ui.c (+2, -7) (Diff)
/source/blender/makesrna/intern/rna_userdef.c (+2, -7) (Diff)
/source/blender/makesrna/intern/rna_wm.c (+4, -13) (Diff)
/source/blender/makesrna/intern/rna_wm_gizmo.c (+4, -14) (Diff)
/source/blender/makesrna/RNA_access.h (+1, -0) (Diff)
/source/blender/python/intern/bpy_rna.c (+58, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021