own error, was returning the wrong python error type

This commit is contained in:
2007-10-21 16:48:12 +00:00
parent 2ecc688e76
commit 373a1b05be

View File

@@ -738,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 (int) EXPP_ReturnPyObjError( PyExc_AttributeError,
return EXPP_ReturnIntError( PyExc_AttributeError,
"matrix must be a 4x4 transformation matrix\n"
"for example as returned by object.matrixWorld" );