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:
authorJoseph Gilbert <ascotan@gmail.com>2006-01-11 22:40:06 +0300
committerJoseph Gilbert <ascotan@gmail.com>2006-01-11 22:40:06 +0300
commit5f0232f68f1a3216b74e82a26a9c7952c55d1458 (patch)
tree84f2c5d5ed44388d8895ad43db16f7e840976fe9 /source/blender/python/api2_2x/NLA.c
parentf4de95a5f6e8d6414fd54f498e14acd39d1fe421 (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.c8
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 );