===Python API===

Initial commit for new Modifier API.  Probably does about 70-75% of what it
should, but it's a start.
This commit is contained in:
Ken Hughes
2006-04-23 02:34:50 +00:00
parent a7863efb8a
commit 8001a8b409
8 changed files with 1406 additions and 15 deletions

View File

@@ -108,6 +108,7 @@ struct rctf;
#include "Effect.h"
#include "Pose.h"
#include "Group.h"
#include "Modifier.h"
#include "gen_utils.h"
#include "BIF_editkey.h"
@@ -3513,6 +3514,8 @@ static PyObject *Object_getAttr( BPy_Object * obj, char *name )
return Object_getDupliNoSpeed( obj );
if( StringEqual( name, "drawSize" ) )
return ( PyFloat_FromDouble( object->empty_drawsize ) );
if( StringEqual( name, "modifiers" ) )
return ModSeq_CreatePyObject( obj->object );
/* not an attribute, search the methods table */
return Py_FindMethod( BPy_Object_methods, ( PyObject * ) obj, name );