- typos in boxpack comments (incorrectly had comment that it was from NAN)

- removed unused defines STREQ, STREQ2, STREQ3 and MINSIZE
This commit is contained in:
2009-08-16 08:36:08 +00:00
parent d776dcf795
commit dfc7d63911
3 changed files with 29 additions and 39 deletions

View File

@@ -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;
}