===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:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user