Blender Git Commit Log

Git Commits -> Revision fff8a51

Revision fff8a51 by Bastien Montagne (master)
February 27, 2015, 22:02 (GMT)
Py Enum props definition: 'default' parameter cleanup/fix.

* There was no real default value for this parameter (neither "" nor None would work the same as
not specifying that parameter). Now, 'None' is considered as default value, and you get
exact same behavior with this value and if not specifying it. This is important at least for
consistency, and potentially too in some esoteric cases (like generated code or so).
* Add a warning about the fact that 'default' parameter shall not be psecified when items
are given a callback function.

Commit Details:

Full Hash: fff8a519b85da12fd9582bc1e83d5e63faeaedea
Parent Commit: 12f60e7
Lines Changed: +9, -1

1 Modified Path:

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