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/Armature.c')
-rw-r--r--source/blender/python/api2_2x/Armature.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/source/blender/python/api2_2x/Armature.c b/source/blender/python/api2_2x/Armature.c
index 4aab0515587..f542caeb872 100644
--- a/source/blender/python/api2_2x/Armature.c
+++ b/source/blender/python/api2_2x/Armature.c
@@ -1357,6 +1357,21 @@ struct bArmature *PyArmature_AsArmature(BPy_Armature *py_armature)
{
return (py_armature->armature);
}
+
+// This function returns true when the given PyObject
+// is of the type Sound. Otherwise it will return false
+int Armature_CheckPyObject( PyObject * pyobj )
+{
+ return ( pyobj->ob_type == &Armature_Type);
+}
+
+struct bArmature *Armature_FromPyObject( PyObject * py_obj )
+{
+ return PyArmature_AsArmature((BPy_Armature*)py_obj);
+}
+
+
+
//-------------------MODULE INITIALIZATION--------------------------------
PyObject *Armature_Init(void)
{