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
This commit is contained in:
2007-01-22 11:26:55 +00:00
parent 32676b66a4
commit a03c8ba8a0
4 changed files with 108 additions and 2 deletions

View File

@@ -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)
{