diff options
author | Joseph Gilbert <ascotan@gmail.com> | 2006-01-11 22:40:06 +0300 |
---|---|---|
committer | Joseph Gilbert <ascotan@gmail.com> | 2006-01-11 22:40:06 +0300 |
commit | 5f0232f68f1a3216b74e82a26a9c7952c55d1458 (patch) | |
tree | 84f2c5d5ed44388d8895ad43db16f7e840976fe9 /source/blender/python/api2_2x/NLA.c | |
parent | f4de95a5f6e8d6414fd54f498e14acd39d1fe421 (diff) |
*pose code for python
- adds object.getPose
- ability to manipulate poses /posebones
- fixes a overflow bug in matrix sequence accessor
- adds code to get vec/roll from mat3
- few internal fixes to NLA
- ability to set bone matrices
Diffstat (limited to 'source/blender/python/api2_2x/NLA.c')
-rw-r--r-- | source/blender/python/api2_2x/NLA.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source/blender/python/api2_2x/NLA.c b/source/blender/python/api2_2x/NLA.c index a07f15b3cab..96701c124f5 100644 --- a/source/blender/python/api2_2x/NLA.c +++ b/source/blender/python/api2_2x/NLA.c @@ -447,11 +447,15 @@ PyObject *Action_CreatePyObject( struct bAction * act ) { BPy_Action *blen_action; + if(!act) + return EXPP_incr_ret(Py_None); + blen_action = ( BPy_Action * ) PyObject_NEW( BPy_Action, &Action_Type ); - if( blen_action == NULL ) { - return ( NULL ); + if( !blen_action) { + return ( EXPP_ReturnPyObjError + ( PyExc_RuntimeError, "failure to create object!" ) ); } blen_action->action = act; return ( ( PyObject * ) blen_action ); |