[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [12325] trunk/blender/source/blender/ python/api2_2x/Pose.c: warning cleanup:

Stephen Swaney sswaney at centurytel.net
Sun Oct 21 18:43:21 CEST 2007


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

Log Message:
-----------
warning cleanup:
 unused var
 return makes integer from pointer without cast

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:39:07 UTC (rev 12324)
+++ trunk/blender/source/blender/python/api2_2x/Pose.c	2007-10-21 16:43:21 UTC (rev 12325)
@@ -730,7 +730,6 @@
 //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 @@
 									"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" );
 





More information about the Bf-blender-cvs mailing list