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/sceneSequence.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/sceneSequence.c')
-rw-r--r-- | source/blender/python/api2_2x/sceneSequence.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/source/blender/python/api2_2x/sceneSequence.c b/source/blender/python/api2_2x/sceneSequence.c index 1ef88c4353a..f6cad95b8ab 100644 --- a/source/blender/python/api2_2x/sceneSequence.c +++ b/source/blender/python/api2_2x/sceneSequence.c @@ -462,7 +462,7 @@ static int Sequence_setIpo( BPy_Sequence * self, PyObject * value ) /* if parameter is not None, check for valid Ipo */ if ( value != Py_None ) { - if ( !Ipo_CheckPyObject( value ) ) + if ( !BPy_Ipo_Check( value ) ) return EXPP_ReturnIntError( PyExc_TypeError, "expected an Ipo object" ); @@ -1033,21 +1033,6 @@ PyObject *SceneSeq_CreatePyObject( struct Scene * scn, struct Sequence * iter) return ( ( PyObject * ) pysceseq ); } - -/*****************************************************************************/ -/* Function: Sequence_CheckPyObject */ -/* Description: This function returns true when the given PyObject is of the */ -/* type Sequence. Otherwise it will return false. */ -/*****************************************************************************/ -int Sequence_CheckPyObject( PyObject * py_seq) -{ - return ( py_seq->ob_type == &Sequence_Type ); -} -int SceneSeq_CheckPyObject( PyObject * py_seq) -{ - return ( py_seq->ob_type == &SceneSeq_Type ); -} - /*****************************************************************************/ /* Function: Sequence_FromPyObject */ /* Description: This function returns the Blender sequence from the given */ |