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/Constraint.c | |
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/Constraint.c')
-rw-r--r-- | source/blender/python/api2_2x/Constraint.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/source/blender/python/api2_2x/Constraint.c b/source/blender/python/api2_2x/Constraint.c index d95a2e1e9a9..d67557084a1 100644 --- a/source/blender/python/api2_2x/Constraint.c +++ b/source/blender/python/api2_2x/Constraint.c @@ -531,7 +531,7 @@ static int action_setter( BPy_Constraint *self, int type, PyObject *value ) } case EXPP_CONSTR_ACTION: { bAction *act = (( BPy_Action * )value)->action; - if( !Action_CheckPyObject( value ) ) + if( !BPy_Action_Check( value ) ) return EXPP_ReturnIntError( PyExc_TypeError, "expected BPy action argument" ); con->act = act; @@ -1482,16 +1482,6 @@ PyObject *Constraint_CreatePyObject( bPoseChannel *pchan, Object *obj, } /*****************************************************************************/ -/* Function: Constraint_CheckPyObject */ -/* Description: This function returns true when the given PyObject is of the */ -/* type Constraint. Otherwise it will return false. */ -/*****************************************************************************/ -int Constraint_CheckPyObject( PyObject * pyobj ) -{ - return ( pyobj->ob_type == &Constraint_Type ); -} - -/*****************************************************************************/ /* Function: Constraint_FromPyObject */ /* Description: This function returns the Blender constraint from the given */ /* PyObject. */ |