[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [12326] trunk/blender/source/blender/ python/api2_2x/Pose.c: own error, was returning the wrong python error type

Campbell Barton cbarton at metavr.com
Sun Oct 21 18:48:12 CEST 2007


Revision: 12326
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=12326
Author:   campbellbarton
Date:     2007-10-21 18:48:12 +0200 (Sun, 21 Oct 2007)

Log Message:
-----------
own error, was returning the wrong python error type

Modified Paths:
--------------
    trunk/blender/source/blender/python/api2_2x/Pose.c

Modified: trunk/blender/source/blender/python/api2_2x/Pose.c
===================================================================
--- trunk/blender/source/blender/python/api2_2x/Pose.c	2007-10-21 16:43:21 UTC (rev 12325)
+++ trunk/blender/source/blender/python/api2_2x/Pose.c	2007-10-21 16:48:12 UTC (rev 12326)
@@ -738,7 +738,7 @@
 									"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" );
 





More information about the Bf-blender-cvs mailing list