[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [10839] trunk/blender/source/blender/ python/api2_2x/Blender.c: when removing py_build value I removed this but shouldnt have, however theres no need to parse the value in Blender_Redraw since its done in the Window module .

Campbell Barton cbarton at metavr.com
Fri Jun 1 07:54:17 CEST 2007


Revision: 10839
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=10839
Author:   campbellbarton
Date:     2007-06-01 07:54:16 +0200 (Fri, 01 Jun 2007)

Log Message:
-----------
when removing py_build value I removed this but shouldnt have, however theres no need to parse the value in Blender_Redraw since its done in the Window module.

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

Modified: trunk/blender/source/blender/python/api2_2x/Blender.c
===================================================================
--- trunk/blender/source/blender/python/api2_2x/Blender.c	2007-06-01 02:48:36 UTC (rev 10838)
+++ trunk/blender/source/blender/python/api2_2x/Blender.c	2007-06-01 05:54:16 UTC (rev 10839)
@@ -521,14 +521,7 @@
 /*****************************************************************************/
 static PyObject *Blender_Redraw( PyObject * self, PyObject * args )
 {
-	int wintype = SPACE_VIEW3D;
-
-	if( !PyArg_ParseTuple( args, "|i", &wintype ) ) {
-		return EXPP_ReturnPyObjError( PyExc_TypeError,
-					      "expected int argument (or nothing)" );
-	}
-
-	return M_Window_Redraw( self, PyInt_FromLong( (long)wintype ) );
+	return M_Window_Redraw( self, args );
 }
 
 /*****************************************************************************/





More information about the Bf-blender-cvs mailing list