Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-06-21 06:15:07 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-06-21 06:15:07 +0400
commitccc112a8577a3b094e4f88ca0a1e810b40ceea86 (patch)
tree3b0a9d90a02c409102c0d9f753af9bcfa422b0c8
parent768184753abb5a69e278bfe6207fe070b2e0ffc7 (diff)
fix for error in swizzle assignment leaving an unhandled exception.
-rw-r--r--source/blender/python/generic/mathutils_Vector.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/generic/mathutils_Vector.c b/source/blender/python/generic/mathutils_Vector.c
index d0ba94474d4..e07b51c9e4b 100644
--- a/source/blender/python/generic/mathutils_Vector.c
+++ b/source/blender/python/generic/mathutils_Vector.c
@@ -1634,7 +1634,7 @@ static int Vector_setSwizzle(VectorObject *self, PyObject *value, void *closure)
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;
}