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>2009-08-16 12:36:08 +0400
committerCampbell Barton <ideasman42@gmail.com>2009-08-16 12:36:08 +0400
commitdfc7d63911b10f987d1223c892a7e62ddc317844 (patch)
treea983341d2bf5cb65f27edfb3f336ef53782c02b8 /source/blender/python/generic/euler.c
parentd776dcf795c838996af16fca27922cec61d84b28 (diff)
- typos in boxpack comments (incorrectly had comment that it was from NAN)
- removed unused defines STREQ, STREQ2, STREQ3 and MINSIZE
Diffstat (limited to 'source/blender/python/generic/euler.c')
-rw-r--r--source/blender/python/generic/euler.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/generic/euler.c b/source/blender/python/generic/euler.c
index 14ee03ad888..73fcaeb457b 100644
--- a/source/blender/python/generic/euler.c
+++ b/source/blender/python/generic/euler.c
@@ -242,7 +242,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(!STREQ3(axis,"x","y","z")){
+ 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;
}