vector.c - bugfix, vec.w accessed vec[4] not vec[3]! (probably my fault)

Texture.c - added "val = tex.evaluate(vec)" so you can find the color/intensity at a given loaction for a texture.
This commit is contained in:
2007-03-02 09:48:04 +00:00
parent b5343551ac
commit b2acdd69b0
3 changed files with 39 additions and 1 deletions

View File

@@ -959,7 +959,7 @@ static PyObject *Vector_getAxis( VectorObject * self, void *type )
return EXPP_ReturnPyObjError(PyExc_AttributeError,
"vector.w: error, cannot get this axis for a 3D vector\n");
return PyFloat_FromDouble(self->vec[4]);
return PyFloat_FromDouble(self->vec[3]);
default:
{
char errstr[1024];