Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2021-07-30 09:04:00 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-07-30 09:04:00 +0300
commitd06b03f80da5ce7a5c833f25be783df3b4bc4c00 (patch)
tree41139f58f62f5252c1fcfb64a39505baa26e4e5b /source/blender/python/intern/bpy_props.h
parent9764d90fda685492c8fcb3bb55a8949749d461f2 (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.h5
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;