diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-10-30 08:11:39 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-10-30 08:17:46 +0300 |
commit | f711c44b8dc8e10b37b387cefabb7236ae77decd (patch) | |
tree | 51d5021bd6ff0abbbd52913b3ba597d1ed0fdd08 /source/blender/makesrna/intern/rna_workspace_api.c | |
parent | 0973ea51325ef27ca9c6ed305fd4f3c4ec1184c9 (diff) |
PyAPI: Support for 'None' string args from Python
This is needed because some RNA functions differentiate a NULL 'char *'
argument from an empty string.
Previously a NULL argument could be passed when the C definition
defined the default as NULL and the argument wasn't passed
which is a fairly hidden way of handling things.
Now strings use `PROP_NEVER_NULL` by default
which can be cleared for function arguments that allow None -> NULL.
Diffstat (limited to 'source/blender/makesrna/intern/rna_workspace_api.c')
0 files changed, 0 insertions, 0 deletions