[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [37684] trunk/blender/source/blender/ python/generic/mathutils_Vector.c: fix for error in swizzle assignment leaving an unhandled exception.

Campbell Barton ideasman42 at gmail.com
Tue Jun 21 04:15:09 CEST 2011


Revision: 37684
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=37684
Author:   campbellbarton
Date:     2011-06-21 02:15:07 +0000 (Tue, 21 Jun 2011)
Log Message:
-----------
fix for error in swizzle assignment leaving an unhandled exception.

Modified Paths:
--------------
    trunk/blender/source/blender/python/generic/mathutils_Vector.c

Modified: trunk/blender/source/blender/python/generic/mathutils_Vector.c
===================================================================
--- trunk/blender/source/blender/python/generic/mathutils_Vector.c	2011-06-21 02:02:16 UTC (rev 37683)
+++ trunk/blender/source/blender/python/generic/mathutils_Vector.c	2011-06-21 02:15:07 UTC (rev 37684)
@@ -1634,7 +1634,7 @@
 
 		size_from= axis_from;
 	}
-	else if((size_from=mathutils_array_parse(vec_assign, 2, 4, value, "mathutils.Vector.**** = swizzle assignment")) == -1) {
+	else if(PyErr_Clear(), (size_from=mathutils_array_parse(vec_assign, 2, 4, value, "mathutils.Vector.**** = swizzle assignment")) == -1) {
 		return -1;
 	}
 




More information about the Bf-blender-cvs mailing list