Blender Git Commit Log

Git Commits -> Revision f711c44

Revision f711c44 by Campbell Barton (master)
October 30, 2018, 05:17 (GMT)
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.

Commit Details:

Full Hash: f711c44b8dc8e10b37b387cefabb7236ae77decd
Parent Commit: 0973ea5
Lines Changed: +21, -2

2 Modified Paths:

/source/blender/makesrna/intern/rna_define.c (+2, -1) (Diff)
/source/blender/python/intern/bpy_rna.c (+19, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021