diff options
author | Campbell Barton <ideasman42@gmail.com> | 2008-12-25 13:48:36 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2008-12-25 13:48:36 +0300 |
commit | 46d505194b1a6f18d33eae15f46d9cea73f5d8f6 (patch) | |
tree | 2c39862e8603b571f89b53824740fdd6bea723d5 /source/blender/python/intern/bpy_rna.h | |
parent | 0d7027ecab5d4c667a42c1a5d16d88a9e74e8979 (diff) |
* PyOperators now parse args using the PyRNA api (wraps ID props internally),
this means it can reuse the function for converting python to RNA types - giving more useful errors.
* Incorrect enum args lists valid values in their exception message (used for PyRNA and PyOperators).
* remove bpy_idprop.c and bpy_idprop.h
PyOperators are not usable since they run outside the UI loop atm.
Diffstat (limited to 'source/blender/python/intern/bpy_rna.h')
-rw-r--r-- | source/blender/python/intern/bpy_rna.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/python/intern/bpy_rna.h b/source/blender/python/intern/bpy_rna.h index 94f97a565a4..f707ebb774b 100644 --- a/source/blender/python/intern/bpy_rna.h +++ b/source/blender/python/intern/bpy_rna.h @@ -49,4 +49,7 @@ PyObject *BPY_rna_doc( void ); 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, PyObject *value); + #endif |