diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-08-30 12:37:35 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-08-30 12:37:35 +0400 |
commit | 6a993054ad1d7b572801cabfca2f3455e4f09c31 (patch) | |
tree | 46bc1d84730f0db8467b9ba448d0d1f3e990c7ea /source/blender/python | |
parent | df4dd70d7bc1f60cb9ea5bbb2da4f0319f6f55b5 (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.c | 2 |
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; } |