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-01-22 14:26:55 +0300
committerCampbell Barton <ideasman42@gmail.com>2007-01-22 14:26:55 +0300
commita03c8ba8a0c22de46e1b85c29f5df3c30e865f3e (patch)
treeb49b542b0ec15556e568c85a10764443d34ad67c /source/blender/python/api2_2x/Armature.c
parent32676b66a4117c84f1f94d0203cbe73a76062e86 (diff)
creating new objects from
ob = scn.objects.new(arm_data) didnt work. Also added docs to Pose - that make an armature, add an action and add pose keyframes
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)
{