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:
-rw-r--r--source/blender/python/api2_2x/Pose.c3
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" );