diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-07-30 09:04:00 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-07-30 09:04:00 +0300 |
commit | d06b03f80da5ce7a5c833f25be783df3b4bc4c00 (patch) | |
tree | 41139f58f62f5252c1fcfb64a39505baa26e4e5b /source/blender/python/intern/bpy_props.h | |
parent | 9764d90fda685492c8fcb3bb55a8949749d461f2 (diff) |
PyAPI: include the property name & type in registration errors
This gives useful context in errors,
also remove newline endings from exceptions.
Diffstat (limited to 'source/blender/python/intern/bpy_props.h')
-rw-r--r-- | source/blender/python/intern/bpy_props.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/python/intern/bpy_props.h b/source/blender/python/intern/bpy_props.h index bc7f0cfe416..e6bbd6f708d 100644 --- a/source/blender/python/intern/bpy_props.h +++ b/source/blender/python/intern/bpy_props.h @@ -33,7 +33,10 @@ StructRNA *pointer_type_from_py(PyObject *value, const char *error_prefix); typedef struct { PyObject_HEAD - /* This isn't GC tracked, it's a function from `bpy.props` so it's not going away. */ + /** + * Internally a #PyCFunctionObject type. + * \note This isn't GC tracked, it's a function from `bpy.props` so it's not going away. + */ void *fn; PyObject *kw; } BPy_PropDeferred; |