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/Material.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/Material.c')
-rw-r--r--source/blender/python/api2_2x/Material.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/source/blender/python/api2_2x/Material.c b/source/blender/python/api2_2x/Material.c
index 092992c42f3..e3d1d533f5b 100644
--- a/source/blender/python/api2_2x/Material.c
+++ b/source/blender/python/api2_2x/Material.c
@@ -1217,16 +1217,6 @@ PyObject *Material_CreatePyObject( struct Material *mat )
}
/*****************************************************************************/
-/* Function: Material_CheckPyObject */
-/* Description: This function returns true when the given PyObject is of the */
-/* type Material. Otherwise it will return false. */
-/*****************************************************************************/
-int Material_CheckPyObject( PyObject * pyobj )
-{
- return ( pyobj->ob_type == &Material_Type );
-}
-
-/*****************************************************************************/
/* Function: Material_FromPyObject */
/* Description: This function returns the Blender material from the given */
/* PyObject. */
@@ -2580,7 +2570,7 @@ Material **EXPP_newMaterialList_fromPyList( PyObject * list )
pymat = ( BPy_Material * ) PySequence_GetItem( list, i );
- if( Material_CheckPyObject( ( PyObject * ) pymat ) ) {
+ if( BPy_Material_Check( ( PyObject * ) pymat ) ) {
mat = pymat->material;
matlist[i] = mat;
} else if( ( PyObject * ) pymat == Py_None ) {