Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2007-03-15 04:09:14 +0300
committerCampbell Barton <ideasman42@gmail.com>2007-03-15 04:09:14 +0300
commitee5dc4d0bf99fe457ece7b37df72dc1cc12e3cd1 (patch)
treec42b47cc23156ca0e8a03610faf175f9535a5b5d /source/blender/python/api2_2x/Texture.c
parenta567e43628e780b5cc88f0f1aa73eb3111eab0f5 (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/Texture.c')
-rw-r--r--source/blender/python/api2_2x/Texture.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/source/blender/python/api2_2x/Texture.c b/source/blender/python/api2_2x/Texture.c
index 909efcc680b..9e657dec109 100644
--- a/source/blender/python/api2_2x/Texture.c
+++ b/source/blender/python/api2_2x/Texture.c
@@ -1339,11 +1339,6 @@ Tex *Texture_FromPyObject( PyObject * pyobj )
return ( ( BPy_Texture * ) pyobj )->texture;
}
-int Texture_CheckPyObject( PyObject * pyobj )
-{
- return ( pyobj->ob_type == &Texture_Type );
-}
-
/*****************************************************************************/
/* Python BPy_Texture methods: */
/*****************************************************************************/
@@ -1966,7 +1961,7 @@ static int Texture_setIpo( BPy_Texture * 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_RuntimeError,
"expected an Ipo object" );