diff options
author | Jean-Luc Peurière <jlp@nerim.net> | 2005-03-09 22:45:59 +0300 |
---|---|---|
committer | Jean-Luc Peurière <jlp@nerim.net> | 2005-03-09 22:45:59 +0300 |
commit | c78e44cdc563853c250da78ee78ba622c39126b2 (patch) | |
tree | fb116af7e1edd94ef96ae883bea727be372e2bd2 /source/blender/python/api2_2x/Bone.c | |
parent | 77d44e88e95d86661fc8b29db923083ec747cf9d (diff) |
big warning hunt commit
lot of casts, added prototypes, missing includes and some true errors
Diffstat (limited to 'source/blender/python/api2_2x/Bone.c')
-rw-r--r-- | source/blender/python/api2_2x/Bone.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/python/api2_2x/Bone.c b/source/blender/python/api2_2x/Bone.c index 5a3a2d014e1..686b791a846 100644 --- a/source/blender/python/api2_2x/Bone.c +++ b/source/blender/python/api2_2x/Bone.c @@ -233,7 +233,7 @@ PyObject *Bone_Init( void ) //--------------- Bone module internal callbacks----------------- //--------------- updatePyBone------------------------------------ -int updatePyBone( BPy_Bone * self ) +static int updatePyBone( BPy_Bone * self ) { int x, y; char *parent_str = ""; @@ -1691,7 +1691,7 @@ static PyObject *Bone_getRestMatrix( BPy_Bone * self, PyObject * args ) //use python vars if( BLI_streq( local, worldspace ) ) { VecSubf( delta, self->tail->vec, self->head->vec ); - make_boneMatrixvr( *( ( MatrixObject * ) matrix )-> + make_boneMatrixvr( (float ( * )[4]) *( ( MatrixObject * ) matrix )-> matrix, delta, self->roll ); } else if( BLI_streq( local, bonespace ) ) { return ( EXPP_ReturnPyObjError( PyExc_AttributeError, @@ -1701,12 +1701,12 @@ static PyObject *Bone_getRestMatrix( BPy_Bone * self, PyObject * args ) //use bone datastruct if( BLI_streq( local, worldspace ) ) { get_objectspace_bone_matrix( self->bone, - *( ( MatrixObject * ) + ( float ( * )[4] ) *( ( MatrixObject * ) matrix )->matrix, 1, 1 ); } else if( BLI_streq( local, bonespace ) ) { VecSubf( delta, self->bone->tail, self->bone->head ); - make_boneMatrixvr( *( ( MatrixObject * ) matrix )-> + make_boneMatrixvr( (float ( * )[4]) *( ( MatrixObject * ) matrix )-> matrix, delta, self->bone->roll ); if( self->bone->parent ) { get_bone_root_pos( self->bone, root, 1 ); |