diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-07-23 17:48:15 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-07-23 17:48:15 +0400 |
commit | 7508afe25b929e5e5c45f80c474b20388d7ba1c4 (patch) | |
tree | 00c55b9f9be12008032edc91bdb48d48ab11c111 /source/blender/python/intern/bpy_rna.h | |
parent | 712298abd27c2b02fb09af47430c1347ac8ab723 (diff) |
pyrna,
calling rna functions with the wrong argument type would raise an error like..
expected a string type
Added an error prefix so now the message is..
TypeError: UILayout.item_enumO(): error with argument 3, "value" - expected a string type
Diffstat (limited to 'source/blender/python/intern/bpy_rna.h')
-rw-r--r-- | source/blender/python/intern/bpy_rna.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/intern/bpy_rna.h b/source/blender/python/intern/bpy_rna.h index d2f01b06336..76e4a13c167 100644 --- a/source/blender/python/intern/bpy_rna.h +++ b/source/blender/python/intern/bpy_rna.h @@ -69,7 +69,7 @@ PyObject *pyrna_struct_CreatePyObject( PointerRNA *ptr ); PyObject *pyrna_prop_CreatePyObject( PointerRNA *ptr, PropertyRNA *prop ); /* operators also need this to set args */ -int pyrna_py_to_prop(PointerRNA *ptr, PropertyRNA *prop, void *data, PyObject *value); +int pyrna_py_to_prop(PointerRNA *ptr, PropertyRNA *prop, void *data, PyObject *value, const char *error_prefix); int pyrna_pydict_to_props(PointerRNA *ptr, PyObject *kw, const char *error_prefix); PyObject * pyrna_prop_to_py(PointerRNA *ptr, PropertyRNA *prop); |