correction to error message from Dan Eicher
authorCampbell Barton <ideasman42@gmail.com>
Thu, 2 Dec 2010 21:55:55 +0000 (21:55 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 2 Dec 2010 21:55:55 +0000 (21:55 +0000)
source/blender/python/generic/mathutils_vector.c

index 60381e914f67fc9f74b98acd9f503a5df0900949..f44b3fb5d058cde11b5d2d9b53710e71fdee0974 100644 (file)
@@ -702,12 +702,12 @@ static PyObject *Vector_Rotate(VectorObject *self, PyObject *args)
        float angle, vec[3];
 
        if(!PyArg_ParseTuple(args, "O!f", &vector_Type, &axis_vec, &angle)){
-               PyErr_SetString(PyExc_TypeError, "vec.rotate(angle, axis): expected angle (float) and 3D axis");
+               PyErr_SetString(PyExc_TypeError, "vec.rotate(axis, angle): expected 3D axis (Vector) and angle (float)");
                return NULL;
        }
 
        if(self->size != 3 || axis_vec->size != 3) {
-               PyErr_SetString(PyExc_AttributeError, "vec.rotate(angle, axis): expects both vectors to be 3D");
+               PyErr_SetString(PyExc_AttributeError, "vec.rotate(axis, angle): expects both vectors to be 3D");
                return NULL;
        }