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:

Commit Details:

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

By: Miika HämäläinenLast update: Nov-07-2014 14:18 MiikaHweb | 2003-2021