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:
Diffstat (limited to 'source/blender/python/api2_2x/Constraint.c')
-rw-r--r--source/blender/python/api2_2x/Constraint.c12
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. */