diff options
author | Stephen Swaney <sswaney@centurytel.net> | 2007-10-21 20:43:21 +0400 |
---|---|---|
committer | Stephen Swaney <sswaney@centurytel.net> | 2007-10-21 20:43:21 +0400 |
commit | 2ecc688e761b9e631f2ab6f6d3654b3d40d81282 (patch) | |
tree | 1693cb24673006bd021509fc502d81921ce7374d /source/blender/python/api2_2x | |
parent | c4218a810cb3d9df750f54a2e0a496c048007bbe (diff) |
warning cleanup:
unused var
return makes integer from pointer without cast
Diffstat (limited to 'source/blender/python/api2_2x')
-rw-r--r-- | source/blender/python/api2_2x/Pose.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/python/api2_2x/Pose.c b/source/blender/python/api2_2x/Pose.c index e71747b50d3..a92afaae1e8 100644 --- a/source/blender/python/api2_2x/Pose.c +++ b/source/blender/python/api2_2x/Pose.c @@ -730,7 +730,6 @@ static PyObject *PoseBone_getPoseMatrix(BPy_PoseBone *self, void *closure) //Sets the pose_mat static int PoseBone_setPoseMatrix(BPy_PoseBone *self, MatrixObject *value, void *closure) { - float loc_mat[4][4]; float delta_mat[4][4], quat[4]; /* rotation */ float size[4]; /* size only */ @@ -739,7 +738,7 @@ static int PoseBone_setPoseMatrix(BPy_PoseBone *self, MatrixObject *value, void "expected matrix object as argument" ); if( value->colSize != 4 || value->rowSize != 4 ) - return EXPP_ReturnPyObjError( PyExc_AttributeError, + return (int) EXPP_ReturnPyObjError( PyExc_AttributeError, "matrix must be a 4x4 transformation matrix\n" "for example as returned by object.matrixWorld" ); |