diff options
author | Campbell Barton <ideasman42@gmail.com> | 2007-03-15 04:09:14 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2007-03-15 04:09:14 +0300 |
commit | ee5dc4d0bf99fe457ece7b37df72dc1cc12e3cd1 (patch) | |
tree | c42b47cc23156ca0e8a03610faf175f9535a5b5d /source/blender/python/api2_2x/logic.h | |
parent | a567e43628e780b5cc88f0f1aa73eb3111eab0f5 (diff) |
removed duplicate functionality, macro's and functions existed to check a PyObjects type, now only use macro's
Diffstat (limited to 'source/blender/python/api2_2x/logic.h')
-rw-r--r-- | source/blender/python/api2_2x/logic.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/logic.h b/source/blender/python/api2_2x/logic.h index 74478b44acf..013c26af4f2 100644 --- a/source/blender/python/api2_2x/logic.h +++ b/source/blender/python/api2_2x/logic.h @@ -38,6 +38,8 @@ extern PyTypeObject property_Type; +#define BPy_Property_Check(v) ((v)->ob_type == &property_Type) + //--------------------------Python BPy_Property structure definition.---- typedef struct { PyObject_HEAD @@ -51,7 +53,6 @@ typedef struct { //------------------------------visible prototypes----------------------- PyObject *Property_CreatePyObject( struct bProperty *prop ); -int Property_CheckPyObject( PyObject * py_obj ); bProperty *Property_FromPyObject( PyObject * py_obj ); PyObject *newPropertyObject( char *name, PyObject * data, int type ); int updatePyProperty( BPy_Property * self ); |