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>2010-08-30 12:37:35 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-08-30 12:37:35 +0400
commit6a993054ad1d7b572801cabfca2f3455e4f09c31 (patch)
tree46bc1d84730f0db8467b9ba448d0d1f3e990c7ea /source/blender/python
parentdf4dd70d7bc1f60cb9ea5bbb2da4f0319f6f55b5 (diff)
bugfix [#23586] Euler.rotate() method is broken
fix included in the report
Diffstat (limited to 'source/blender/python')
-rw-r--r--source/blender/python/generic/mathutils_euler.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/generic/mathutils_euler.c b/source/blender/python/generic/mathutils_euler.c
index b36eb7803f1..84845002ce8 100644
--- a/source/blender/python/generic/mathutils_euler.c
+++ b/source/blender/python/generic/mathutils_euler.c
@@ -250,7 +250,7 @@ static PyObject *Euler_Rotate(EulerObject * self, PyObject *args)
PyErr_SetString(PyExc_TypeError, "euler.rotate(): expected angle (float) and axis (x,y,z)");
return NULL;
}
- if(ELEM3(*axis, 'X', 'Y', 'Z') && axis[1]=='\0'){
+ if(!(ELEM3(*axis, 'X', 'Y', 'Z') && axis[1]=='\0')){
PyErr_SetString(PyExc_TypeError, "euler.rotate(): expected axis to be 'X', 'Y' or 'Z'");
return NULL;
}